ASF Bugzilla – Attachment 35407 Details for
Bug 61301
ab slows dramatically with requests >8192 bytes, httpd seems to be working correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Read more when body buffer is full
ab-read_more.patch (text/plain), 682 bytes, created by
Yann Ylavic
on 2017-10-09 20:32:43 UTC
(
hide
)
Description:
Read more when body buffer is full
Filename:
MIME Type:
Creator:
Yann Ylavic
Created:
2017-10-09 20:32:43 UTC
Size:
682 bytes
patch
obsolete
>Index: support/ab.c >=================================================================== >--- support/ab.c (revision 1811594) >+++ support/ab.c (working copy) >@@ -1506,6 +1506,7 @@ static void read_connection(struct connection * c) > int i; > > r = sizeof(buffer); >+read_more: > #ifdef USE_SSL > if (c->ssl) { > status = SSL_read(c->ssl, buffer, r); >@@ -1712,6 +1713,9 @@ static void read_connection(struct connection * c) > c->bread += r; > totalbread += r; > } >+ if (r == sizeof(buffer) && c->bread < c->length) { >+ goto read_more; >+ } > > if (c->keepalive && (c->bread >= c->length)) { > /* finished a keep-alive connection */
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 61301
: 35407