http://git.etherboot.org
/
people
/
mcb30
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c3d09c
)
Work around another instance of the port re-use bug.
author
Michael Brown
<mcb30@etherboot.org>
Tue, 5 Dec 2006 23:15:35 +0000
(23:15 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Tue, 5 Dec 2006 23:15:35 +0000
(23:15 +0000)
src/net/tcp.c
patch
|
blob
|
history
diff --git
a/src/net/tcp.c
b/src/net/tcp.c
index
f8ac701
..
aa49366
100644
(file)
--- a/
src/net/tcp.c
+++ b/
src/net/tcp.c
@@
-466,6
+466,14
@@
int tcp_connectto ( struct tcp_connection *conn,
return -EISCONN;
}
+#warning "Fix the port re-use bug"
+ /* If we re-use the same port, the connection should be reset
+ * and a new connection set up. This doesn't happen yet, so
+ * force the use of a new (random) port to avoid hitting the
+ * problem.
+ */
+ conn->local_port = 0;
+
/* Add the connection to the set of listening connections */
if ( ( rc = tcp_listen ( conn, conn->local_port ) ) != 0 ) {
return rc;