pecl-mogilefs
pecl-mogilefs copied to clipboard
Connection timeot below 1 sec
One one server:
$ php -r '$m=new MogileFS; $m->connect("127.0.0.2", "7001", "piccsy", 0.1); var_dump($m->isConnected());'
bool(true)
$ php --version
PHP 5.3.10-1ubuntu3
Another server:
$ php -r '$m=new MogileFS; $m->connect("192.168.168.1", "7001", "piccsy", 1); var_dump($m->isConnected());'
bool(true)
$ php -r '$m=new MogileFS; $m->connect("192.168.168.1", "7001", "piccsy", 0.99); var_dump($m->isConnected());'
PHP Fatal error: Uncaught exception 'MogileFsException' with message 'Can't connect to 108.163.176.42:7001'
$ ping 192.168.168.1
64 bytes from 108.163.176.42: icmp_req=1 ttl=60 time=1.33 ms
$ php --version
PHP 5.3.3-7+squeeze8
Both use mogilefs 0.9.1.
Could you compare libneon versions on both of the systems? (neon-config --version
)
Wow, that's a swift reaction, thanks! 0.29.3 (bad) vs 0.29.6 (good).
Could you update libneon to 0.29.6 and see if the issue is still there? I could not find anything in their changelogs but to me it looks like a libneon bug.