FreeBSD Bugzilla – Attachment 134331 Details for
Bug 178987
[patch] fix printing failure in print/cups-client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 813 bytes, created by
r4721@tormail.org
on 2013-05-26 10:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
r4721@tormail.org
Created:
2013-05-26 10:30:00 UTC
Size:
813 bytes
patch
obsolete
>Index: print/cups-base/files/patch-client-reconnect >=================================================================== >--- print/cups-base/files/patch-client-reconnect (revision 0) >+++ print/cups-base/files/patch-client-reconnect (working copy) >@@ -0,0 +1,28 @@ >+--- cups/request.c >++++ cups/request.c >+@@ -1004,6 +1004,25 @@ >+ httpClose(cg->http); >+ cg->http = NULL; >+ } >++ else >++ { >++ /* >++ * Same server, see if the connection is still established... >++ */ >++ >++ char ch; /* Connection check byte */ >++ >++ if (recv(cg->http->fd, &ch, 1, MSG_PEEK | MSG_DONTWAIT) < 0 && >++ errno != EWOULDBLOCK) >++ { >++ /* >++ * Nope, close the connection... >++ */ >++ >++ httpClose(cg->http); >++ cg->http = NULL; >++ } >++ } >+ } >+ >+ /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 178987
: 134331