patch-2.0.10 linux/net/ipv4/tcp.c
Next file: linux/Makefile
Previous file: linux/net/ipv4/igmp.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sat Jul 27 11:54:58 1996
- Orig file:
v2.0.9/linux/net/ipv4/tcp.c
- Orig date:
Fri Jul 5 18:17:12 1996
diff -u --recursive --new-file v2.0.9/linux/net/ipv4/tcp.c linux/net/ipv4/tcp.c
@@ -726,12 +726,7 @@
return 0;
if (sk->state == TCP_SYN_SENT || sk->state == TCP_SYN_RECV)
break;
- /*
- * This is now right thanks to a small fix
- * by Matt Dillon.
- */
-
- if (sock_wspace(sk) < sk->mtu+128+sk->prot->max_header)
+ if (sk->wmem_alloc*2 > sk->sndbuf)
break;
return 1;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov