lkml.org 
[lkml]   [2001]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.4.0-ac3 write() to tcp socket returning errno of -3 (ESRCH: "No such process")
   Date: Thu, 11 Jan 2001 10:45:13 -0600 (CST)
From: Paul Cassella <pwc@speakeasy.net>

I'm not familiar enough with the tcp code to know if this patch
(against -ac6) is a solution, band-aid, or, in fact, wrong, but
I've run with it (on -ac3) and haven't seen the errors for over
twelve hours, which is three times longer than it had been able to
go without it coming up.

See the fix I put in 2.4.1-pre2, which is:

diff -u --recursive --new-file v2.4.0/linux/net/ipv4/tcp.c linux/net/ipv4/tcp.c
--- v2.4.0/linux/net/ipv4/tcp.c Tue Nov 28 21:53:45 2000
+++ linux/net/ipv4/tcp.c Wed Jan 10 14:12:12 2001
@@ -954,7 +954,7 @@
*/
skb = sk->write_queue.prev;
if (tp->send_head &&
- (mss_now - skb->len) > 0) {
+ (mss_now > skb->len)) {
copy = skb->len;
if (skb_tailroom(skb) > 0) {
int last_byte_was_odd = (copy % 4);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.048 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site