<div dir="ltr"><div>Subclass twisted.internet.tcp.Client, override createInternetSocket() so it calls setsockopt() on the socket after you've called base implementation to create it. This breaks some abstraction boundaries, so it isn't great, but very little code duplication is involved.<br>
</div><div class="gmail_extra"><div><br></div>-- <br>Itamar Turner-Trauring, Future Foundries LLC<br><a href="http://futurefoundries.com/" target="_blank">http://futurefoundries.com/</a> — Twisted consulting, training and support.<br>

</div></div>