Process class requires an output buffer
So I keep getting these socket_write()
errors (broken pipe). While "broken pipe" normally means that the socket is being closed by the other end, I think that may not always be the case. Anywayz, as it turns out I need to handle partial output with socket_write, which I am not currently doing. This may alleviate some issues.
So, the lass itself should have an output buffer. socket_write()
will return how many bytes it actually wrote. If that is less than the size of the output buffer then we need to truncate the output buffer with substr()
and try again in the future to send the rest.