There's more than one way to do things | |
PerlMonks |
IO::Socket::SSL + fork problemby mrhyde (Novice) |
on Nov 20, 2014 at 14:40 UTC ( [id://1107935]=perlquestion: print w/replies, xml ) | Need Help?? |
mrhyde has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a network client application which simply receives some signals from the server and returns responses. The problem is when a forked child process is trying to write to the socket on the second call, IO::Socket::SSL simply closes the connection. Though, the first time it's called ( tick() ), it doesn't break the connection and returns a healthy response. The problem exists: 1) only on Linux, it works fine on Windows. 2) only with IO::Socket::SSL, it works fine with IO::Socket::INET minimized code to reproduce the problem: I suppose there is a socket reference being missed, or something similar. What am I doing wrong?
Back to
Seekers of Perl Wisdom
|
|