trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] branch quic-latest updated: Increase buffer sizes for UDP socket
Date Tue, 15 Aug 2017 01:56:38 GMT
This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 5847855  Increase buffer sizes for UDP socket
5847855 is described below

commit 58478550894828671231bb94b7584db4cbe26991
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Tue Aug 15 10:55:55 2017 +0900

    Increase buffer sizes for UDP socket
---
 iocore/net/QUICNetProcessor.cc | 2 +-
 iocore/net/test_I_UDPNet.cc    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/iocore/net/QUICNetProcessor.cc b/iocore/net/QUICNetProcessor.cc
index 7500ab1..2eab6f8 100644
--- a/iocore/net/QUICNetProcessor.cc
+++ b/iocore/net/QUICNetProcessor.cc
@@ -136,7 +136,7 @@ QUICNetProcessor::main_accept(Continuation *cont, SOCKET fd, AcceptOptions
const
   na->action_->server = &na->server;
   na->init_accept();
 
-  udpNet.UDPBind((Continuation *)na, &na->server.accept_addr.sa, 1024000, 1024000);
+  udpNet.UDPBind((Continuation *)na, &na->server.accept_addr.sa, 1048576, 1048576);
 
   return na->action_.get();
 }
diff --git a/iocore/net/test_I_UDPNet.cc b/iocore/net/test_I_UDPNet.cc
index b8358ee..68d708c 100644
--- a/iocore/net/test_I_UDPNet.cc
+++ b/iocore/net/test_I_UDPNet.cc
@@ -60,7 +60,7 @@ EchoServer::start()
   addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
   addr.sin_port        = htons(port);
 
-  udpNet.UDPBind(static_cast<Continuation *>(this), reinterpret_cast<sockaddr const
*>(&addr), 1024000, 1024000);
+  udpNet.UDPBind(static_cast<Continuation *>(this), reinterpret_cast<sockaddr const
*>(&addr), 1048576, 1048576);
 
   return true;
 }

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message