cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems with SMTP connection re-using (SSL read: error:00000000:lib(0):func(0):reason(0))

From: Volker Schmid <volker.schmid_at_regify.com>
Date: Sat, 08 Dec 2012 11:13:47 +0100

Hello Dan,

>> Any idea why it complains with SSL read: error:00000000:lib(0):func(0):reason(0), errno 54?
>
> You'd have to look up the OpenSSL documentation to see what errno 54
> means, but if the next line can be believed and errno=32 is actually a
> syscall error, then it's EPIPE - Broken pipe. It sound like it's just
> that the remote server has closed the connection.

Thank you, but the OpenSSL error code 00000000 says nothing. I can not find any error 54 for OpenSSL :-(

It might be some timeout, as the logfiles says there have been 70 seconds time between. Maybe that is to long.

> Does libcurl make a new connection and retry when this happens? If not, then it
> probably should.

No, it simply fails like in my log:

> 2012-12-06 15:34:59 : CURL: MAIL FROM:<qa1_at_xxxxxxxxxxx.com>
> 2012-12-06 15:34:59 : CURL: SSL read: error:00000000:lib(0):func(0):reason(0), errno 54
> 2012-12-06 15:34:59 : CURL: SSL_write() returned SYSCALL, errno = 32
> 2012-12-06 15:34:59 : CURL: Closing connection #0
> 2012-12-06 15:34:59 : CURL: Failure when receiving data from the peer

I think it should reconnect then but it does not.

I will try some modification of my code to only re-use connections if they are not older than 20 seconds. Maybe this fixes my problems. I will report here next week.

Best,

Volker
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-08