<div dir="ltr"><div class="gmail_extra">It is a very, very dangerous practice, because you loose control over your program with non-blocking send.</div><div class="gmail_extra"><br></div><div class="gmail_extra">First step that you MUST do is setting send_timeout on socket. By default it is infinity and it means that your process may get blocked forever trying to push data.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I don't know why infinity is a default value, it is really strange for me.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Second, dangerous step is just using port_command(Socket, IoData). Then you must wait for messages from this socket. But don't use it =)</div>
<div class="gmail_extra"><br></div></div>