inet:setopts(Socket, [{active,once}]), process_flag(priority, high), this will help you -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140730/d6e7085b/attachment.htm>