Re: [PD] calling free-method on pd quit (was Re: Problem with tcpserver from iemnet)

2012-02-19 Thread Hans-Christoph Steiner

On Feb 16, 2012, at 11:46 AM, IOhannes m zmölnig wrote:

 On 02/16/12 17:13, IOhannes m zmölnig wrote:
 fine; but not if you just do a [; pd quit(; see also my bug-report/patch
 about this on sf ( which seems to be down currently)
 
 it's up again, so here is the ticket:
 http://sf.net/tracker/index.php?func=detailaid=1502860group_id=55736atid=478072

I included it in Pd-extended 0.43.  So far, so good.  Doesn't seem to change 
quit times.  I tried some really big patches.

.hc




We have nothing to fear from love and commitment. - New York Senator Diane 
Savino, trying to convince the NY Senate to pass a gay marriage bill


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] calling free-method on pd quit (was Re: Problem with tcpserver from iemnet)

2012-02-16 Thread IOhannes m zmölnig

On 02/15/12 23:13, Roman Haefeli wrote:


I have that as well, but it seems it is not specific to iemnet's
classes. I experience that with many net classes in Pd and also - IIRC -
with other programming languages that provide ways to open a listening


the problem is, that the socket does get not closed properly by Pd.
this is due to the feature of Pd, that it doesn't call the free-method 
(destructor) of an object, is you just quit Pd.
(if you explicitely delete the object, the free-method is called just 
fine; but not if you just do a [; pd quit(; see also my bug-report/patch 
about this on sf ( which seems to be down currently)


if the socket does not get closed properly, the OS will free it after 
some timeout.




socket. On my box it is a matter of seconds until the bind address is
freed. On an earlier Debian installation, it was often a matter of
minutes (for instance, when the netpd server crashed), which was more
annoying. I haven't figured out a way to avoid this.


the only way to avoid this, is to properly close the socket on exit.

depending on your OS, you can modify the timeout, in order to shorten 
your re-launch times.


on linux, try something like
# echo 1  /proc/sys/net/ipv4/tcp_tw_recycle


mfgdasr
IOhannes

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] calling free-method on pd quit (was Re: Problem with tcpserver from iemnet)

2012-02-16 Thread IOhannes m zmölnig

On 02/16/12 17:13, IOhannes m zmölnig wrote:

fine; but not if you just do a [; pd quit(; see also my bug-report/patch
about this on sf ( which seems to be down currently)


it's up again, so here is the ticket:
http://sf.net/tracker/index.php?func=detailaid=1502860group_id=55736atid=478072

fgmadrs
IOhannes

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list