Testing "Broken Pipe" Recovery?
| From: | Dee Ayy | Date: | Wed, 23 Sep 2009 03:27:37 +0000 |
| Subject: | Testing "Broken Pipe" Recovery? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-298267@lists.php.net to get a copy of this message | ||
How 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?