lwIP - A Lightweight TCP/IP stack - Bugs: bug #22020, tcp_bind() for listen connection...
You are not allowed to post comments on this tracker with your current authentication level.
bug #22020: tcp_bind() for listen connection fails when connection on this port is active
| Submitter: | Simon Goldschmidt <goldsimon> | ||
| Submitted: | Mon 14 Jan 2008 02:58:35 PM UTC | ||
| Category: | TCP | Severity: | 3 - Normal |
| Item Group: | Faulty Behaviour | Status: | Wont Fix |
| Privacy: | Public | Assigned to: | None |
| Open/Closed: | Closed | Planned Release: | None |
| lwIP version: | None | ||
|
Tue 15 Jan 2008 07:11:43 PM UTC, comment #5: |
Simon Goldschmidt <goldsimon> |
|
Tue 15 Jan 2008 03:31:59 PM UTC, comment #4: For example:
|
Kieran Mansley <kieranm> |
|
Tue 15 Jan 2008 03:02:17 PM UTC, comment #3:
|
Simon Goldschmidt <goldsimon> |
|
Tue 15 Jan 2008 02:45:23 PM UTC, comment #2: That's what I thought too. Closing this as "wont fix" |
Kieran Mansley <kieranm> |
|
Mon 14 Jan 2008 03:13:32 PM UTC, comment #1: Untill options SO_REUSEADDR and SO_REUSEPORT are not supported, I think it is correct. |
Oleg Tyshev <olegreen> |
|
Mon 14 Jan 2008 02:58:35 PM UTC, original submission:
This was discussed on lwip-users:
|
Simon Goldschmidt <goldsimon> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
| Date | Changed by | Updated Field | Previous Value | => | Replaced by |
|---|---|---|---|---|---|
| 2008-01-15 | kieranm | Status | None | Wont Fix | |
| Open/Closed | Open | Closed |

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...?