lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #22020] tcp_bind() for listen connection fails when co


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #22020] tcp_bind() for listen connection fails when connection on this port is active
Date: Tue, 15 Jan 2008 19:11:44 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

Follow-up Comment #5, bug #22020 (project lwip):

> I may have misunderstood the problem being described though.

No you haven't. And thanks for the link to the explanation. The thing that
was missing for me is that only on windows the following code seems to work,
while it doesn't on linux & lwIP:

do {
s1 = socket()
bind(s1)
listen(s1)
s2 = accept(s1)
close(s1)
recv(s2)
send(se)
close(s2)

}while(1);

from the second loop on, bind fails under linux and lwIP. The reason for this
is that on windows, only the client side is in TIME_WAIT, the server side is
closed right away.

I wonder if there is any standard on this...?

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?22020>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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