projects
/
libs
/
net.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f312d8
)
Increase Communicator buffer size to 64k
author
Mikko Rasa
<tdb@tdb.fi>
Wed, 12 Oct 2016 09:59:00 +0000
(12:59 +0300)
committer
Mikko Rasa
<tdb@tdb.fi>
Wed, 12 Oct 2016 09:59:00 +0000
(12:59 +0300)
This is the current maximum size for a packet, and there isn't really
any need to use a smaller buffer.
source/net/communicator.cpp
patch
|
blob
|
history
diff --git
a/source/net/communicator.cpp
b/source/net/communicator.cpp
index 051e45a14bbb4f33d262429df400fe4f6b6b60dd..3d6353a2158fb2d62fbe6df164085a1b2ea7a417 100644
(file)
--- a/
source/net/communicator.cpp
+++ b/
source/net/communicator.cpp
@@
-58,7
+58,7
@@
Communicator::Communicator(StreamSocket &s, const Protocol &p, ReceiverBase &r):
protocol(p),
receiver(r),
handshake_status(0),
- buf_size(
1024
),
+ buf_size(
65536
),
in_buf(new char[buf_size]),
in_begin(in_buf),
in_end(in_buf),