How to inject a “Broken pipe” error?

后端 未结 3 2005
野的像风
野的像风 2021-01-22 05:24

I am running test for a network program which uses TCP sockets. To verify a bug fix, I need to reproduce a \"Broken pipe\" error at the socket layer, but I don\'t know how. Any

3条回答
  •  不思量自难忘°
    2021-01-22 05:56

    'Broken pipe' means that you have written to a connection that has already been closed by the peer. So, have the peer close the connection.

提交回复
热议问题