[PD-dev] about [tcpserver] (mrpeach and iemnet)

Martin martin.peach at sympatico.ca
Mon Dec 13 20:42:33 CET 2010


On 13/12/10 10:19 AM, Roman Haefeli wrote:
> On Fri, 2010-12-10 at 10:54 -0500, Hans-Christoph Steiner wrote:
>> On Dec 10, 2010, at 5:12 AM, IOhannes m zmölnig wrote:
>>> On 12/09/2010 10:28 PM, Roman Haefeli wrote:
>>>> @ IOhannes
>>>> Though I like this 'stable'/reliable behaviour of iemnet's
>>>> [tcpserver],
>>>> I wonder what happens, if it keeps sending data to the unreachable
>>>> client. Will it just go on and buffer everything until the whole
>>>> RAM of
>>>> the computer is consumed? If so, wouldn't it be more wise to just
>>>> disconnect that client at some point in order to avoid the box
>>>> running
>>>> out of memory?
>>> you can query the fillstate of the buffer from within the patch and
>>> act
>>> upon that: if you prefer to disconnect after 300MB (because of the
>>> 2.5GB
>>> memory you have, 2GB are only swap), or if you rather go and crash or
>>> whatever...it's up to you.
> Great! That's even better than to disconnect clients at some arbitrary
> buffer size.
>
What? It's better to crash the server than to disconnect an unresponsive 
client? And if the server itself loses its connection it will buffer 
300MB for each client and then crash?

Martin




More information about the Pd-dev mailing list