Reading from a closed socket: different behavior between Linux and other operating systems

Lothar Kimmeringer job at kimmeringer.de
Tue Jan 7 17:34:04 UTC 2020



Am 07.01.2020 um 09:19 schrieb Dawid Weiss:

> I can understand how this behavior can be considered
> platform-dependent but it's still a bit surprising that it shows
> consistent behavior on everything except Linux... (we originally
> thought it's Windows to be blamed here).

Not the only one. Open, close and open again a ServerSocket for the
same port in a short time (i.e. less than one minute) and you
will get bind exceptions on Linux where other systems happily work.


Cheers, Lothar


More information about the security-dev mailing list