lkml.org 
[lkml]   [2000]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: 2.2 generating odd TCP resets?

Most likely reason is that the server calls close() while there is
still data pending to be read. As TCP is a reliable transport, this
loss of data causes a RST.

An application bug.

-tony



On 18-Oct-2000 Brian Craft wrote:
> I've been trying to get xsane-win32 working with a linux server.
> It keeps failing because read() on the win95 box returns an error
> just before the data transfer is complete.
>
> Dumping the conversation, I see linux sending a TCP RST:
>
>
> 00:26:29.260171 > porky.cisco.com.1034 > scan.1029: P
> 2185689:2187149(1460) ack 2 win 32120 (DF)
> 00:26:29.260988 < scan.1029 > porky.cisco.com.1034: . 2:2(0) ack
> 2187149 win 0 (DF)
> 00:26:29.288496 < scan.1029 > porky.cisco.com.1034: . 2:2(0) ack
> 2187149 win 1460 (DF)
> 00:26:29.288551 > porky.cisco.com.1034 > scan.1029: FP
> 2187149:2187555(406) ack 2 win 32120 (DF)
> 00:26:29.288861 < scan.1029 > porky.cisco.com.1034: . 2:2(0) ack
> 2187556 win 1054 (DF)
> 00:26:29.320316 < scan.1029 > porky.cisco.com.1034: . 2:2(0) ack
> 2187556 win 8354 (DF)
> 00:26:29.320404 > porky.cisco.com.1034 > scan.1029: R
> 3147707184:3147707184(0) win 0
>
>
> Why is it sending a reset? Because the FIN was ACK'ed twice? Is
> this correct
> behavior? I've tried 2.2.14 and 2.2.17, with the same result.
>

---
E-Mail: Tony Gale <gale@syntax.dera.gov.uk>
Disclose classified information only when a NEED TO KNOW exists.

The views expressed above are entirely those of the writer
and do not represent the views, policy or understanding of
any other person or official body.
-
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 12:41    [W:0.799 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site