gen_tcp:recv - last segement when closed port

Jani Hakala jahakala@REDACTED
Sun Mar 12 23:06:13 CET 2006


"Per Hedeland" <hedeland@REDACTED> writes:

> 3> tcpbug:cli(56857).
> Got 638 bytes
> Got 1024 bytes
> Got 376 bytes
> Got 1024 bytes
> Got 376 bytes
> Got 1024 bytes
> Got 246 bytes
> Got 1024 bytes
> Got 175 bytes
> Got {error,closed}
> ok
>
I tested tcpbug:cli in linux (R10B-9) and windows xp sp2 (R10B-10, [1]).
In linux the last 175 byte packet is received but not in windows.

It doesn't seem to matter if the tcpbug:srv is running on linux or
windows. 

Jani Hakala

[1] compiled with mingw32 i.e. not an official version



More information about the erlang-questions mailing list