Re: [lwip-users] time out on last ack
At one point I set up an increment of 10 seconds per check, so 10, 20 , 30 ... and it would never reconnect even after a minute. For my purposes the "REUSE" was important - same IP address, same port. And re-establishing connection quickly (within 10 seconds) was also important. It did not seem to matter how long I waited, the "INUSE" error always came up and it confused me because the SO_REUSE compile flag was set. Now it does reuse it after 1 second wait and using tcp_abandon(). I'm happy!MikeOn August 9, 2017 at 9:48 AM goldsimon wrote:Mike Rosing wrote: > After searching a while I see that the LwIP is waiting for LAST_ACK, but the server never sends it. I would have expected lwip to time out this PCB eventually (although that can need quite some time). How long did you wait? Simon___lwip-users mailing listlwip-users@nongnu.orghttps://lists.nongnu.org/mailman/listinfo/lwip-users ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users
Re: [lwip-users] time out on last ack
Mike Rosing wrote: > After searching a while I see that the LwIP is waiting for LAST_ACK, but the > server never sends it. I would have expected lwip to time out this PCB eventually (although that can need quite some time). How long did you wait? Simon___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users
[lwip-users] time out on last ack
A couple weeks ago I posted this question:"I have a situation where the LwIP is a client and I have compiled with SO_REUSE = 1, but the reconnect fails with error -8 (in use). After searching a while I see that the LwIP is waiting for LAST_ACK, but the server never sends it. What can I do to force the internal pcb's to timeout and just allow a reconnect to proceed instead of thinking the connection is still live?"The answer is to use tcp_abandon() when the pcb->state == 9. This removes the pcb from the "time wait" list and allows the connection to re-establish. For anyone's future reference if you have a similar problem.Mike ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users
[lwip-users] time out on last ack
I have a situation where the LwIP is a client and I have compiled with SO_REUSE = 1, but the reconnect fails with error -8 (in use). After searching a while I see that the LwIP is waiting for LAST_ACK, but the server never sends it. What can I do to force the internal pcb's to timeout and just allow a reconnect to proceed instead of thinking the connection is still live?Thanks.Mike ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users