lkml.org 
[lkml]   [2008]   [Sep]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 21 Sep 2008 21:13:37 +0100
FromAlan Cox <>
SubjectRe: Honoring SO_RCVLOWAT in proto_ops.poll methods
Thats a gloriously insane way of trying to do HTTP/1.1, and one I'm not
sure is actually viable in the real world because the TCP window may be
smaller than the number of bytes required to find a Host: header - so you
may simply not be able to receive it via MSG_PEEK. In particular mobile
phone gateways have a nasty habit of using very small windows.

> I just don't see a good solution for what I'm doing other than MSG_PEEK
> and SO_RCVLOWAT, any ideas?

I don't either, and while I don't agree that what you are doing for
HTTP/1.1 is remotely sane there are probably other cases this would be
both sane and useful which does suggest fixing it would be beneficial


\
 
 \ /
  Last update: 2008-09-21 22:17    [from the cache]
©2003-2008