[Twisted-Python] Twisted 16.3.2 Release Announcement

2016-08-19 Thread Amber "Hawkie" Brown
On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 16.3.1. This is a security fix release, and is recommended for all users of Twisted. The fixes contained are: - Twisted's HTTP server, when operating over TLS, would not cleanly close sockets, causing it

Re: [Twisted-Python] How do you determine the buffer size of a transport - a use-case for not using back pressure

2016-08-19 Thread Steve Morin
Anyone know how do you determine the buffer size of a transport, to know how much data is waiting to be transmitted from using transport.write? Or how you would go about adding that ability to a reactor/transport? On Wed, Aug 17, 2016 at 3:43 PM, Steve Morin wrote: > Twisted Community > > Probl

Re: [Twisted-Python] How do you determine the buffer size of a transport - a use-case for not using back pressure

2016-08-19 Thread Jean-Paul Calderone
There are at least two buffers (per direction) you might be interested in. You can get the kernel buffer size with getsockopt - SO_SNDBUF and SO_RCVBUF. Then, there may also be a user-space buffer (or perhaps more than one) managed by the transport implementation. The details of this are entirely