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

IOhannes m zmölnig zmoelnig at iem.at
Fri Dec 10 11:12:22 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

fgmsadr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0B/QYACgkQkX2Xpv6ydvRTTgCfQDHGkqJ0dY+PqMjHYyNNAe7n
QWoAoPTwqZoea4qC3G+KbgQ2W61fWRLt
=QHsl
-----END PGP SIGNATURE-----



More information about the Pd-dev mailing list