[Twisted-Python] Flow-control for Pipes / Unix Domains Sockets?

David Stainton dstainton415 at gmail.com
Mon Oct 21 15:33:32 MDT 2013


Hi,

I don't know the answer to your question...
I've been thinking about flow control lately.

I recently wrote a little working prototype VPN in Twisted using
IPushProducer and IConsumer interfaces
but I have not yet implemented flow control :

Here we can see how I proxy between TUN and UDP using producers and consumers:

https://github.com/david415/hushVPN/blob/master/hushVPN_service.py


Perhaps later on I could add flow control... by having the consumers
pause the producers when need be.
For now I just churn packets as fast as possible.

David


On Mon, Oct 21, 2013 at 1:48 PM, Tobias Oberstein
<tobias.oberstein at tavendo.de> wrote:
> Hi,
>
> with TCP (either remote or loopback) I can have flow-control using the
> producer-consumer machinery that Twisted provides.
>
> Is that (flow-control / producer-consumer) also available (and practically
> usable/recommended) with:
>
> a) Unix Domain sockets
> b) Pipes (spawnProcess)
>
> ?
>
> Thanks!
> /Tobias
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>




More information about the Twisted-Python mailing list