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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -