Hello,
In an app I am writing I am getting the following error. This is occurring inside code which when encountering an exception will sleep(100) and retry. After 10 retries (1 second) it will close the client and create a newHttpClient.
Rather than catching this exception the app just stops, goes silent for 10+ minutes and then quits with the below.
I am not sure how to handle this.
Any help greatly appreciated.
Current Exception: SslError
Current Exception Msg: error:1409F07F:SSL routines:ssl3_write_pending:bad write retry
Current Exception: SslError
Current Exception Msg: error:1409F07F:SSL routines:ssl3_write_pending:bad write retry
Current Exception: SslError
Current Exception Msg: error:1409F07F:SSL routines:ssl3_write_pending:bad write retry
...
Traceback (most recent call last)
mycode...
httpclient.nim(1235) get
httpclient.nim(1227) request
httpclient.nim(1204) request
httpclient.nim(1183) requestAux
net.nim(1379) send
net.nim(1367) send
SIGPIPE: Pipe closed.
Rather than catching this exception the app just stops, goes silent for 10+ minutes and then quits with the below.
Which exception do you mean? The SslError or the SIGPIPE. I'm assuming the latter since the output implies that you've caught the SslError successfully.
This SIGPIPE shouldn't happen, we should be passing MSG_NOSIGNAL to send. From what I can see in the code this doesn't happen on Mac OS X, is that what you're running this on?