9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Tim Wiess <tim@nop.cx>
To: 9fans@9fans.net
Subject: Re: [9fans] telnet vs. godaddy whois
Date: Thu, 17 Apr 2008 13:59:31 -0700	[thread overview]
Message-ID: <c2d313a519d57ee0aa369809aabc8aae@akira.nop.cx> (raw)
In-Reply-To: <41b9f1bf163c2d3c41e182407477eb28@quanstro.net>

>> On Thu, 17 Apr 2008 09:18:31 BST Charles Forsyth <forsyth@terzarima.net>  wrote:
>>> > having said that, i now suspect that sending one byte into a zero-window is
>>>  not the problem.
>>>
>>> because the one-byte probe can only be done if there is data to send, and i
>>> already knew that a plain connection (dial only) to that port also failed:
>>
>> Not setting the PSH bit on a pure ACK (== no data is being
>> sent) seems to fix this (see ip/tcp.c around line 2530).  May
>> be it tickles a bug on the receiver (0 byte read?).
>
> this does work for me.  is there some subtile reason *to* set the psh bit
> on a pure ack?  in certain circumstances?
>
> good call. from rfc793, p 42:
>
>       [...]  If the the user signals a push function then the
>       data must be sent even if it is a small segment.
>
> minooka; 9diff ip/tcp.c
> /n/sources/plan9//sys/src/9/ip/tcp.c:2529,2535 - ip/tcp.c:2529,2535
>   			}
>   		}
>
> - 		if(sent+dsize == sndcnt)
> + 		if(sent+dsize == sndcnt && dsize)
>   			seg.flags |= PSH;
>
>   		/* keep track of balance of resent data */
>
> - erik

    I noticed this some time ago when I was doing some work in the
    stack and thought it was very questionable.  But I never got a
    chance to go back and do further research.  Nevertheless I think
    it's the wrong behavior.



  reply	other threads:[~2008-04-17 20:59 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-15 17:16 erik quanstrom
2008-04-16 13:31 ` Russ Cox
2008-04-16 13:46   ` Charles Forsyth
2008-04-16 16:52     ` Michaelian Ennis
2008-04-16 18:36     ` erik quanstrom
2008-04-16 19:04       ` ron minnich
2008-04-16 19:48         ` Bakul Shah
2008-04-16 20:25           ` Tim Wiess
2008-04-16 20:49           ` Charles Forsyth
2008-04-16 21:43             ` Taj Khattra
2008-04-16 22:00               ` John Barham
2008-04-16 22:20               ` C H Forsyth
2008-04-16 23:26             ` Bakul Shah
2008-04-17  0:04               ` Charles Forsyth
2008-04-17  8:18                 ` Charles Forsyth
2008-04-17 18:41                   ` Bakul Shah
2008-04-17 19:29                     ` erik quanstrom
2008-04-17 20:59                       ` Tim Wiess [this message]
2008-04-17 21:19                         ` Charles Forsyth
2008-04-17 21:23                           ` Tim Wiess
2008-04-17 21:56                             ` Charles Forsyth
2008-04-17 22:06                               ` Charles Forsyth
2008-04-17 22:43                               ` Tim Wiess
2008-04-17 23:02                                 ` Charles Forsyth
2008-04-17 23:09                                   ` Charles Forsyth
2008-04-21 14:56                                     ` erik quanstrom
2008-04-21 15:24                                       ` Charles Forsyth
2008-04-21 19:37                                         ` erik quanstrom
2008-04-21 20:20                                           ` Charles Forsyth
2008-04-21 19:28                                       ` Bakul Shah
2008-04-21 20:19                                         ` Charles Forsyth
2008-04-21 20:19                                         ` Charles Forsyth
2008-04-21 21:06                                           ` Bakul Shah
2008-04-21 21:24                                             ` Charles Forsyth
2008-04-21 21:40                                               ` Wes Kussmaul
2008-04-21 21:45                                                 ` erik quanstrom
2008-04-21 22:04                                                   ` Wes Kussmaul
2008-04-21 21:57                                                 ` Charles Forsyth
2008-04-21 22:07                                               ` Bakul Shah
2008-04-21 23:12                                                 ` Charles Forsyth
2008-04-21 21:49                                         ` erik quanstrom
2008-04-21 22:42                                           ` Bakul Shah
2008-04-17 21:42                       ` Bakul Shah
2008-04-17 21:49                         ` Charles Forsyth
2008-04-17 21:49                           ` erik quanstrom
2008-04-17 22:15                             ` Charles Forsyth
2008-04-17 22:19                               ` erik quanstrom
2008-04-17 22:48                                 ` Charles Forsyth
2008-04-17 22:55                                   ` Tim Wiess
2008-04-17 23:08                                     ` Charles Forsyth
2008-04-17 22:14                           ` Bakul Shah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c2d313a519d57ee0aa369809aabc8aae@akira.nop.cx \
    --to=tim@nop.cx \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).