aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2015-10-06 11:33:50 +0800
committerDiego Nehab <diego.nehab@gmail.com>2015-10-06 11:33:50 +0800
commitbe67f63f4e11e53690bf1431a236f86b484c9bf0 (patch)
tree2a9e3de162711f3453d238eb49155c4c488189ec /test
parentfd729b32a8966291f007567f72f3dc0158bdab35 (diff)
downloadluasocket-be67f63f4e11e53690bf1431a236f86b484c9bf0.tar.gz
luasocket-be67f63f4e11e53690bf1431a236f86b484c9bf0.tar.bz2
luasocket-be67f63f4e11e53690bf1431a236f86b484c9bf0.zip
Changed buffer-per-socket to buffer-per-operation.
This is a difficult tradeoff to measure. I think large datagrams won't be used very frequently. So it is better to not lock a large buffer to each socket object and instead allocate and deallocate for each operation receiving a datagram larger than UDP_DATAGRAMSIZE.
Diffstat (limited to 'test')
-rw-r--r--test/testclnt.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua
index ee1201f..170e187 100644
--- a/test/testclnt.lua
+++ b/test/testclnt.lua
@@ -669,7 +669,6 @@ local udp_methods = {
669 "settimeout" 669 "settimeout"
670} 670}
671 671
672
673------------------------------------------------------------------------ 672------------------------------------------------------------------------
674test_methods(socket.udp(), udp_methods) 673test_methods(socket.udp(), udp_methods)
675do local sock = socket.tcp6() 674do local sock = socket.tcp6()