[Linux] Broken Pipe Error
- Posted by Kayhlan <kayhlan at EARTHLINK.NET> Nov 14, 2000
- 393 views
Does anyone know what sorts of things will cause a "broken pipe error" when dealing with Linux sockets? I am assuming it is the write function but I have no way of detecting, catching, blocking or ignoring the SIGPIPE signal. My server is crashing at random intervals and I cannot seem to find a reason for it. Is there anyway to test a socket connection before trying to write to it? Any help will be greatly appreciated, as I am about at my wits' end. Kayhlan