pecl-mogilefs icon indicating copy to clipboard operation
pecl-mogilefs copied to clipboard

Connection timeot below 1 sec

Open z-image opened this issue 12 years ago • 3 comments

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.

z-image avatar Apr 14 '12 19:04 z-image

Could you compare libneon versions on both of the systems? (neon-config --version)

lstrojny avatar Apr 14 '12 21:04 lstrojny

Wow, that's a swift reaction, thanks! 0.29.3 (bad) vs 0.29.6 (good).

z-image avatar Apr 14 '12 21:04 z-image

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.

lstrojny avatar Apr 15 '12 15:04 lstrojny