1

[ubuntu] 10.04 LTS -> 12.04 LTS Upgrade Causing PHP fgets() timeouts

view story
linux-howto

http://ubuntuforums.org – Hi all, Recently upgraded a pool of servers to 12.04 LTS from 10.04 LTS. One of the things I noticed mid-upgrade is that calls to fgets() to a socket opened with either pfsockopen(), fsockopen(), or stream_socket_client() will occasionally fail when calling fgets(). My read timeout is set to 500000 micro seconds (half a second), which had no problems on 10.04. I've tried several things to fix this from an application standpoint, but none seem to have any effect. The output of stream_get_meta_data() after a failure is this: Code: ret= stream_type=tcp_socket/ssl mode=r+ unread_bytes= (Hardware)