php - Accessing socket service using persistent socket -
i have tcp socket service myserv running on background (using java, doesn't matter though), , web server php accesses myserv using persistent socket (pfsockopen).
the problem is, if 1 php request stopped whatever reason, leaves un-read data in persistent socket, , following php request error when reading socket.
i wonder how's other services similar scenario (like php-mysql, php-memcached) dealing problem? more specificly, how can php tell used persistent socket clean?
Comments
Post a Comment