read -1 Connection reset by peer?
I am getting Connection reset by peer and I read this is normal behavior, but for me it is intermittent. Sometimes the read returns -1 and sometimes it returns Connection reset by peer. What is different about the two? ie. closing the far end is supposed to result in EOF(-1), but what results in Connection reset by peer?
thanks,
dean