-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
httpPrintf not buffered #1899
Comments
CUPS.org User: mike Patch for this is attached (also includes unrelated fix for STR #1892) |
"str1899.patch": Index: cups/http.c--- cups/http.c (revision 5871) DEBUG_printf(("httpPrintf: %s", buf));
@@ -1888,7 +1893,7 @@
/*
if (request == HTTP_POST || request == HTTP_PUT) @@ -2211,6 +2225,7 @@
Index: cups/http.h--- cups/http.h (revision 5871)
typedef enum http_encryption_e /**** HTTP encryption values ****/ Index: scheduler/client.c--- scheduler/client.c (revision 5882)
+/*
@@ -1024,6 +1038,7 @@
#else
#else
@@ -1538,6 +1556,8 @@
@@ -2074,6 +2096,8 @@
con->http.state = HTTP_WAITING; return (1);
if (httpPrintf(HTTP(con), "HTTP/%d.%d %d %s\r\n", con->http.version / 100,
if (httpPrintf(HTTP(con), "Date: %s\r\n", httpGetDateString(time(NULL))) < 0)
- con->http.data_encoding = HTTP_ENCODE_CHUNKED;
@@ -2310,7 +2339,14 @@
con->http.data_encoding = HTTP_ENCODE_LENGTH; Index: scheduler/client.h--- scheduler/client.h (revision 5871) Index: scheduler/ipp.c--- scheduler/ipp.c (revision 5874)
con->http.data_encoding = HTTP_ENCODE_CHUNKED;
httpPrintf(HTTP(con), "Content-Length: " CUPS_LLFMT "\r\n\r\n",
Index: scheduler/dirsvc.c--- scheduler/dirsvc.c (revision 5871)
/*
- */- errno = 0;
@@ -179,7 +172,6 @@
|
Version: 1.2-current
CUPS.org User: mike
httpPrintf is not buffering its output. Need to add code to handle output buffering prior to starting the request body.
The text was updated successfully, but these errors were encountered: