- Subject: Re: [PATCHv2] sctp: ABORT if receive queue is not empty while closing socket
- From: Thomas Graf <tgraf@xxxxxxxxxxxxx>
- Date: Fri, 8 Jul 2011 10:29:40 -0400
- Cc: netdev@xxxxxxxxxxxxxxx, davem@xxxxxxxxxxxxx, Wei Yongjun <yjwei@xxxxxxxxxxxxxx>, Sridhar Samudrala <sri@xxxxxxxxxx>, linux-sctp@xxxxxxxxxxxxxxx
- In-reply-to: <4E170B00.9080406@hp.com>
- Mail-followup-to: Vladislav Yasevich <vladislav.yasevich@xxxxxx>, netdev@xxxxxxxxxxxxxxx, davem@xxxxxxxxxxxxx, Wei Yongjun <yjwei@xxxxxxxxxxxxxx>, Sridhar Samudrala <sri@xxxxxxxxxx>, linux-sctp@xxxxxxxxxxxxxxx
- References: <20110629135704.GB10085@canuck.infradead.org> <4E0B3491.1060603@hp.com> <20110629143649.GC10085@canuck.infradead.org> <4E0B3DA1.9060200@hp.com> <20110629154814.GD10085@canuck.infradead.org> <4E0B4F71.4020108@hp.com> <20110630133122.GB24074@canuck.infradead.org> <4E0C83FA.2090909@hp.com> <20110708105705.GA14583@canuck.infradead.org> <4E170B00.9080406@hp.com>
- User-agent: Mutt/1.5.20 (2009-08-17)
On Fri, Jul 08, 2011 at 09:49:52AM -0400, Vladislav Yasevich wrote:
> On 07/08/2011 06:57 AM, Thomas Graf wrote:
> > Trigger user ABORT if application closes a socket which has data
> > queued on the socket receive queue as this would imply data being
> > lost which defeats the point of a graceful shutdown.
> >
> > This behavior is already practiced in TCP.
> >
> > We do not check the input queue because that would mean to parse
> > all chunks on it to look for unacknowledged data which seems too
> > much of an effort. Control chunks or duplicated chunks may also
> > be in the input queue and should not be stopping a graceful
> > shutdown.
>
> I think you need to check the ulpq as well.
>
> It is possible to have a condition where you only have data
> in the ulpq (imagine a few lost out of order packets or a few lost
> fragments from very large messages). In those circumstances, either fragmentation
> or ordering queues may consume all of the window (especially if the buffer was
> set small) and you would never trigger the abort.
Good point. Updating the patch.
--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux OMAP]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]