[En-Nut-Discussion] TCP Socket closed after with third TCP Request
Joachim Skale
joachim.skale at tele2.at
Mon Dec 19 10:05:53 CET 2005
hi all,
i've got the following problem.
I use the Ethernut Board as TCP Client which validates Cards via TCP Request on an server.
Within the Third Request the Socket State changed from ESTABLISHED to CLOSED.
When i debug into the Sources of the TCP, i saw that
/*
* Wait until any data arrived, a timeout occurs
* or the connection terminates.
*/
while (sock->so_rx_cnt - sock->so_rd_cnt == 0) {
if (sock->so_state != TCPS_ESTABLISHED) {
sock->so_last_error = ENOTCONN;
return -1;
}
if (NutEventWait(&sock->so_rx_tq, sock->so_read_to))
return 0;
}
in this code segment the socket state is changed to closed.
My Server didn't close the Connection.
Any hints??
Joachim
More information about the En-Nut-Discussion
mailing list