kakserpom / phpdaemon

Asynchronous server-side framework for network applications implemented in PHP using libevent
http://daemon.io/
GNU Lesser General Public License v3.0
1.53k stars 231 forks source link

Network\Connection connect - Closure $beforeConnect not working #298

Open r3l0c opened 5 years ago

r3l0c commented 5 years ago

$beforeConnect->call($this); not working with $this. Possible solution(not tested): 1: replace $beforeConnect->call($this); with $beforeConnect(); 2: Network\Pool connect: add $beforeConnect->bindTo($conn) after $conn = new $class(null, $this);