[erlang-questions] misunderstanding of TCP/IP in a gen_server

zabrane Mikael zabrane3@REDACTED
Tue Dec 21 18:51:02 CET 2010


Hi Constantin,

I'm following you a bit on the mailinglist as we're both working in Switzerland.
If you want, my company based in Lausanne provides Erlang based services.
Drop me a line if you're interested.

-- 
Regards
Zabrane

2010/12/21 info <info@REDACTED>:
> Hello,
> I have a problem of TCP/IP understanding.
> I set the socket server like this:
> Opts = [binary,
>             {reuseaddr, true},
>             {backlog,5},
>  {packet, 0},
>  {active, false},
>             {nodelay, true}],
>
> and, after the listen and the accept, I do:
>
> case gen_tcp:recv(Socket, 0) of
>        {ok, Data} ->
>
> I monitor the TCP/IP frames and I see (client  ->  server):
> AP ->
> <- AF
> ->  A
> ->  AR
>
> I don't understand why the server set the flag "F". The consequence is the reset (AR) by the client.
>
> J-Ph. Constantin
> ITS3 Genève
> www.its3.ch
>


More information about the erlang-questions mailing list