[erlang-questions] can "gen_tcp:recv" blocks my entire server?

zabrane Mikael <>
Thu Apr 22 14:26:23 CEST 2010


>
> You'd better post the code - perhaps your spawns don't do what you

think they do, or some
> process has died, or something. The code should not block so if it
> does something else is wrong.
> Difficult to say without peering at the code.


Nothing secret with my code. Here it is.
- tws.erl is the main gen_server listeing for incoming connections.
- echo.erl only echo back what it gets

To build, simply:

$ make
$ ./start.sh
1> echo:start().
2> echo:stop().

Regards
Zabrane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20100422/ab46270a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tws.tgz
Type: application/x-gzip
Size: 1697 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20100422/ab46270a/attachment.bin>


More information about the erlang-questions mailing list