cupsDoRequest usually fails when reusing the http_t* connection between the printer. #963
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
A printer that closes the HTTP connection after processing one IPP request successfully and doesn't include the "Connection: close" header is not conformant - what printer are you talking to? The code to send the HTTP POST request does try to reconnect if it detects the connection is closed but due to the nature of the BSD sockets API it is possible for that failure to not be detected until after the request is sent. Your observation that debug logging changes the behavior confirms this issue... Since we don't want |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
A printer that closes the HTTP connection after processing one IPP request successfully and doesn't include the "Connection: close" header is not conformant - what printer are you talking to?
The code to send the HTTP POST request does try to reconnect if it detects the connection is closed but due to the nature of the BSD sockets API it is possible for that failure to not be detected until after the request is sent. Your observation that debug logging changes the behavior confirms this issue...
Since we d…