Re: [Twisted-Python] Setting socket options before bind/listen

2014-02-03 Thread Tobias Oberstein
> >Would you mind giving a tip on how to make use of a CustomPort deriving > >of Port? How to "plug" that into Twisted? > > I have two suggestions, one of which I hope you'll like and the other of which > you might not. :) Awesome! This is enough hints to get me started. I already have Twisted e

Re: [Twisted-Python] Setting socket options before bind/listen

2014-02-03 Thread exarkun
On 09:49 pm, tobias.oberst...@tavendo.de wrote: >for a multiprocess server, I'd like to set SO_REUSEPORT on a TCP >listening socket. You might find that https://stackoverflow.com/questions/10077745 /twistedweb-on-multicore-multiprocessor obviates the need for this option (and thus your follow-

Re: [Twisted-Python] Setting socket options before bind/listen

2014-02-03 Thread Tobias Oberstein
> >for a multiprocess server, I'd like to set SO_REUSEPORT on a TCP > >listening socket. > > You might find that https://stackoverflow.com/questions/10077745 > /twistedweb-on-multicore-multiprocessor obviates the need for this option (and > thus your follow-up features as well). Jean-Paul, yes,

Re: [Twisted-Python] Setting socket options before bind/listen

2014-02-03 Thread exarkun
On 08:41 pm, tobias.oberst...@tavendo.de wrote: Hi, for a multiprocess server, I'd like to set SO_REUSEPORT on a TCP listening socket. You might find that https://stackoverflow.com/questions/10077745 /twistedweb-on-multicore-multiprocessor obviates the need for this option (and thus your fo

[Twisted-Python] Setting socket options before bind/listen

2014-02-03 Thread Tobias Oberstein
Hi, for a multiprocess server, I'd like to set SO_REUSEPORT on a TCP listening socket. The option needs to be set _before_ calling bind() and listen() on the socket. Is there a recommended way of doing this? One option might be subclassing `twisted.internet.tcp.Port` and overriding `createInt