I've run test from the client side of the connection - the failure in execution stops between two lines ... one of which seems to be executed, the second of which doesn't. The two lines are syswrite and sysread. The write apparently goes through and the server reacts, however when the read is called the script dies - even when run with something like sysread(...) || print "im dying"; The script doesn't output the I'm dying. I've examined $! and the return code of the sysread and both are empty strings. I do not know what else I can do to debug this so hopefully someone will have an idea. Sorry for the hundred posts.
-Adam Stanley
Nethosters, Inc.
Comment on Re: Re: Unexplainable Client/Server trouble
Writing to a pipe that has no readers can generate a SIGPIPE signal which will kill your program. You can prevent this with $SIG{PIPE}= 'IGNORE'; and then syswrite will return undef and $! will be "broken pipe".