[PD-dev] [mrpeach/tcpserver]: full socket send buffer blocks pd

Roman Haefeli reduzierer at yahoo.de
Sun Dec 6 18:53:47 CET 2009


Hi Martin

I wasn't sure, if I should report that as a bug. The new version of
[tcpserver] seems to work fine, BUT now it suffers again from the
initial problem, that maxlib's [netserver] is still suffering from: 

If the send buffer of a certain socket is full, [tcpserver] is blocked
and thus blocks Pd.

>From a user perspective, i can think of a few solutions to deal with
that. However, i don't have clue, what's possible/difficult to
implement.

a) If the server doesn't get the necessary ACKs in a meaningful time, if
shuts down the connection after a while.

b) Instead of writing to the send buffer, [tcpserver] could output a
message saying, that the data couldn't be sent.

c) Change the behaviour of the 'sent' message from last outlet so, that
it reflects the amount of bytes actually transmitted and not the number
of bytes written to the send buffer.

d) <put something here, that i didn't think of>

cheers
Roman








More information about the Pd-dev mailing list