mirror of https://github.com/adamdruppe/arsd.git
bigger buffer for better performance
This commit is contained in:
parent
c58afec041
commit
9897accfd1
6
http2.d
6
http2.d
|
@ -1664,8 +1664,10 @@ class HttpRequest {
|
||||||
return socket;
|
return socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// stuff used by advanceConnections
|
||||||
SocketSet readSet;
|
SocketSet readSet;
|
||||||
SocketSet writeSet;
|
SocketSet writeSet;
|
||||||
|
private ubyte[] reusableBuffer;
|
||||||
|
|
||||||
/+
|
/+
|
||||||
Generic event loop registration:
|
Generic event loop registration:
|
||||||
|
@ -1731,7 +1733,9 @@ class HttpRequest {
|
||||||
if(writeSet is null)
|
if(writeSet is null)
|
||||||
writeSet = new SocketSet();
|
writeSet = new SocketSet();
|
||||||
|
|
||||||
ubyte[2048] buffer;
|
if(reusableBuffer is null)
|
||||||
|
reusableBuffer = new ubyte[](32 * 1024);
|
||||||
|
ubyte[] buffer = reusableBuffer;
|
||||||
|
|
||||||
HttpRequest[16] removeFromPending;
|
HttpRequest[16] removeFromPending;
|
||||||
size_t removeFromPendingCount = 0;
|
size_t removeFromPendingCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue