07-21-06 06:29 AM
Rainer Temme wrote:
> davids@webmaster.com schrieb:
[vbcol=seagreen]
> No, the ip-stack will not push a packet to the udp-stack before it's
> reassembled. After it's reassembled and accepted by udp there is no
> reason to discard it (that fact that it has been accepted makes clear,
> that there was enough bufferspace).
> So, either a packet is discarded (in this case POLLIN is not signalled)
> or POLLIN is signalled and there is something to read, or an
> error-condition.
You are incorrect. Linux in fact does that and it in fact broke code.
You can argue all you want that this is the way it should be, but no
standard guarantees or requires this behavior and at least one popular
UNIX (Linux) does not in fact provide this behavior.
In fact, this use to be a denial of service attack against inetd which
didn't set its sockets non-blocking.
DS
[ Post a follow-up to this message ]
|