2/17/2024 0 Comments Fin ack![]() Of course libcurl will close the connection and not try to use it any further - if it finds out that this is the situation. You're making definite claims about behavior that isn't that straight forward and simple in the real world. Issue 1: With https, if the server has previously closed the socket (has sent a FIN), libcurl always sends the next request through this socket, it doesn't close the connection as you said it should. So let's focus on the "issue 1" as explained above: Let's ignore the issue that doesn't reproduce anymore. ![]() After all that, libcurl resends the request. Then it eventually closes the socket but after sending the request through the same socket (I couldn't find where it is done). If(CURL_SOCKET_BAD != conn->sock)Ĭurl_closesocket(conn, conn->sock) Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftpįeatures: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP operating system In HTTPS, libcurl should send the FIN-ACK response and then reconnect before sending the new request as in HTTP. Each request-response is shown with a brace on the left (I hope it's all clear enough) I expected the following Please, find attached the wireshark captures. This is the usual behaviour but sometimes does nothing after the RST (neither the SSL connection nor the the resend) and the request is finally discarded. Then libcurl use to restart the SSL connection and resend the new message. If HTTPS, libcurl directly tries to send the new request, so the sever sends a RST.If HTTP, libcurl first sends a FIN-ACK response and then the new request (that's correct).The server eventually tries to close the connection by sending a FIN message to the libcurl client and when I try to send a new request with curl_easy_perform: I'm using a client using libcurl to send several REST POST requests to a mockoon REST Server (HTTP/1.1) using both HTTP and HTTPS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |