curl-library
SSL/TLS: Connection seems dead
Date: Wed, 25 May 2016 11:44:30 -0300
I'm using Nowin webserver a weird interaction with libcurl (reported here:
https://github.com/Bobris/Nowin/issues/65). The repro steps are:
1. Bring up server with Nowin and a valid certificate
2. curl -v https://servername/index.html https://servername/index.html
https://servername/index.html
SSL session is reused in the 2nd GET. But it reports "Connection seems
dead" on the 3rd GET.
I debugged Curl_socket_check in lib/select.c code and found out that
pfd[num].revents == 65, where POLLRDNORM == 64 and POLLIN == 1.
Thus Curl_socket_check returns CURL_CSELECT_IN. SocketIsDead returns true
which causes disconnection.
I was able to reproduce the problem in both Windows and Linux (Ubuntu)
client environments.
What can I conclude from there? Is the webserver misbehaving? If so, why?
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-25