http://www.perlmonks.org?node_id=778562


in reply to Re^2: Socket Handle not sending data ?
in thread Socket Handle not sending data ?

Lauching a thread everytime to check the availability of the socket connection is not a good idea.
just check defined on socket handle or check eof on socket handle or establish a heart beat mechanism to know the liveliness of the socket/program.
If you show the piece of code which requires efficiency, we would able to tell you what could be the best way of dealing it.


Vivek
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.