<HTML>
<HEAD>
<TITLE>Re: [Twisted-Python] Flow-control for Pipes / Unix Domains Sockets?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>fwiw, I have been trying to get find a conclusive answer to the subquestion:<BR>
<BR>
Do Unix domain sockets (either stream or dgram) support flow-control?<BR>
<BR>
The nearest I could find is<BR>
<a href="http://stackoverflow.com/questions/1478975/unix-domain-socket-is-there-such-a-thing-as-a-busy-signal/1479022">http://stackoverflow.com/questions/1478975/unix-domain-socket-is-there-such-a-thing-as-a-busy-signal/1479022</a><BR>
but the comments seem to contradict each other.<BR>
<BR>
seems I'll just try it and see what happens ..<BR>
<BR>
/Tobias<BR>
<BR>
On 21.10.13 23:33, "David Stainton" <<a href="dstainton415@gmail.com">dstainton415@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
I don't know the answer to your question...<BR>
I've been thinking about flow control lately.<BR>
<BR>
I recently wrote a little working prototype VPN in Twisted using<BR>
IPushProducer and IConsumer interfaces<BR>
but I have not yet implemented flow control :<BR>
<BR>
Here we can see how I proxy between TUN and UDP using producers and consumers:<BR>
<BR>
<a href="https://github.com/david415/hushVPN/blob/master/hushVPN_service.py">https://github.com/david415/hushVPN/blob/master/hushVPN_service.py</a><BR>
<BR>
<BR>
Perhaps later on I could add flow control... by having the consumers<BR>
pause the producers when need be.<BR>
For now I just churn packets as fast as possible.<BR>
<BR>
David<BR>
<BR>
<BR>
On Mon, Oct 21, 2013 at 1:48 PM, Tobias Oberstein<BR>
<<a href="tobias.oberstein@tavendo.de">tobias.oberstein@tavendo.de</a>> wrote:<BR>
> Hi,<BR>
><BR>
> with TCP (either remote or loopback) I can have flow-control using the<BR>
> producer-consumer machinery that Twisted provides.<BR>
><BR>
> Is that (flow-control / producer-consumer) also available (and practically<BR>
> usable/recommended) with:<BR>
><BR>
> a) Unix Domain sockets<BR>
> b) Pipes (spawnProcess)<BR>
><BR>
> ?<BR>
><BR>
> Thanks!<BR>
> /Tobias<BR>
><BR>
> _______________________________________________<BR>
> Twisted-Python mailing list<BR>
> <a href="Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><BR>
> <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><BR>
><BR>
<BR>
_______________________________________________<BR>
Twisted-Python mailing list<BR>
<a href="Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><BR>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>