Testing "Broken Pipe" Recovery?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How do I intentionally break a pipe so that I can test recovering
under this eventuality?

I saw this post " 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux