<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>On Mar 12, 2013, at 9:04 PM, A Desai &lt;<a href="mailto:ardesai@yahoo.com">ardesai@yahoo.com</a>&gt; wrote:</div><div><br><blockquote type="cite"><div style="background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; position: static; z-index: auto; ">Using the protocol's transport object, I can fetch the SO_RCVBUF value on the 'accepted' connection and even set the SO_SNDBUF value.&nbsp; However, since TCP Window scaling is enabled by default, it is my understanding that the SO_RCVBUF has to be set before the listen() call is invoked.&nbsp; The .tac file passes the TCPServer object to application/service framework, which in turn calls the listener.&nbsp; So I am wondering if I have to derive a subclass of TCPServer and somehow set the SO_RCVBUF value before the application framework invokes listen();&nbsp; i.e. drill down to the Port
 object where it calls createInternetSocket()?<br></div></blockquote><br></div><div>You'd need to actually subclass tcp.Server, an implementation mechanism that we would really like to deprecate :).</div><div><br></div><div>Really, the right way to do this is to contribute a fix to the ticket I linked, and do it directly next to the listen() call within Twisted :).</div><div><br></div><div>-glyph</div><div><br></div></body></html>