synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiranya Jayathilaka <>
Subject Setting Buffer Sizes in the New API
Date Mon, 12 Aug 2013 19:28:23 GMT
Hi Oleg,

Up until now we supported a parameter named "http.socket.buffer-size" in the
( file of Synapse. The value of this parameter was used to set the corresponding
parameter on HttpParams. How should this change with the new HTTP Core API?

The reason I had to ask is that I see 3 different ways to set a buffer size in the new API:


For the moment I've introduced 2 new parameters to the Synapse properties files and implemented
the following mapping:

http.socket.snd-buffer-size -> IOReactorConfig.setSndBufSize()
http.socket.rcv-buffer-size -> IOReactorConfig.setRcvBufSize()
http.socket.buffer-size (old parameter) -> ConnectionConfig.setBufferSize()

Does this make sense?


Hiranya Jayathilaka
Mayhem Lab/RACE Lab;
Dept. of Computer Science, UCSB;
E-mail:;  Mobile: +1 (805) 895-7443

View raw message