lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] closesocket problem (lwip_close)


From: Adam Fullerton
Subject: [lwip-users] closesocket problem (lwip_close)
Date: Wed, 30 Jun 2010 19:01:05 +0100

Hi All,

I still have a problem with closing a TCP session. The HTTP server does this:

   send(sess->ws_socket, hdrbuf, strlen(hdrbuf), 0);

  
/* Close socket and mark session for deletion */
   closesocket(sess->ws_socket);
   sess->ws_socket = INVALID_SOCKET;
   sess->ws_state = WI_ENDING;

  
return 0;      /* OK Return */
}

Attached is the Wireshark capture from this code. In this case the message sent contains a "404 page not found" which is never displayed by the browser from lwIP but works fine from Windows and Linux. Does anyone know why it is not displayed? The socket is set for non blocking IO.

Is it the same reason that the lwIP telet server can't close a session?

Thanks in advance,

Adam Fullerton.

Attachment: WebPageSendButNotDisplayed.pcap
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]