diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2020-06-23 16:12:41 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2020-06-23 16:12:41 +0200 |
commit | b5faca7a90e1aa25adb8ee69b979d1f4bd7e8d78 (patch) | |
tree | cf9f470cc080b9a07974f84d686e3091c2d5a1a3 /methods | |
parent | a1464cb4025cd737ac57ea7392402d5efd2af027 (diff) |
Replace some magic 64*1024 with APT_BUFFER_SIZE
Diffstat (limited to 'methods')
-rw-r--r-- | methods/http.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index 71aa56751..7036b743c 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -407,7 +407,7 @@ static ResultState UnwrapHTTPConnect(std::string Host, int Port, URI Proxy, std: /*}}}*/ // HttpServerState::HttpServerState - Constructor /*{{{*/ -HttpServerState::HttpServerState(URI Srv,HttpMethod *Owner) : ServerState(Srv, Owner), In(Owner, 64*1024), Out(Owner, 4*1024) +HttpServerState::HttpServerState(URI Srv, HttpMethod *Owner) : ServerState(Srv, Owner), In(Owner, APT_BUFFER_SIZE), Out(Owner, 4 * 1024) { TimeOut = Owner->ConfigFindI("Timeout", TimeOut); ServerFd = MethodFd::FromFd(-1); |