projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
323843d
)
Allow serve() to keep client connections open if the response content length is zero
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 24 Nov 2012 14:00:25 +0000
(14:00 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 24 Nov 2012 14:00:25 +0000
(14:00 +0000)
jcc.c
patch
|
blob
|
history
diff --git
a/jcc.c
b/jcc.c
index
24ddae7
..
f66dad5
100644
(file)
--- a/
jcc.c
+++ b/
jcc.c
@@
-1,4
+1,4
@@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.41
3 2012/11/09 10:48:17
fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.41
4 2012/11/09 10:53:39
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@
-951,6
+951,7
@@
static int server_response_is_complete(struct client_state *csp,
*/
csp->expected_content_length = 0;
content_length_known = TRUE;
*/
csp->expected_content_length = 0;
content_length_known = TRUE;
+ csp->flags |= CSP_FLAG_SERVER_CONTENT_LENGTH_SET;
}
if (csp->http->status == 204 || csp->http->status == 304)
}
if (csp->http->status == 204 || csp->http->status == 304)
@@
-960,6
+961,7
@@
static int server_response_is_complete(struct client_state *csp,
*/
csp->expected_content_length = 0;
content_length_known = TRUE;
*/
csp->expected_content_length = 0;
content_length_known = TRUE;
+ csp->flags |= CSP_FLAG_SERVER_CONTENT_LENGTH_SET;
}
return (content_length_known && ((0 == csp->expected_content_length)
}
return (content_length_known && ((0 == csp->expected_content_length)