Testing "Broken Pipe" Recovery?
am 23.09.2009 05:27:37 von Dee AyyHow do I intentionally break a pipe so that I can test recovering
under this eventuality?
I saw this post "[PHP] Pushing the limits of stream_socket_server()
and stream_select()" but my intermittent broken pipe occurs with 1
client, so I don't want to to create a 252 client situation.
I'm actually testing a client against a remote 3rd party server. I
was thinking of creating my own server; connect my client to that; and
maybe just killing my server process while it's connected (rather than
using fclose which may be too clean). Is that the right approach?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php