Hi there, I have been running liquidsoap with the restart_delay=1 option to automatically reconnect the mountpoint to the server in the event of a temporary internet interruption.
Unfortunately, however on this one particular network Liquidsoap always hangs for almost 7 minutes before reconnecting. I simulated this by going into Icecast and hitting the "Kill mount" link at 12:11:00 in the log below, however it took several minutes before it reconnected or showed anything in the logs! During this time the socket seemed to be stuck in a CLOSE_WAIT state on the encoder side, but was completely shutdown on the server side: Encoder side: # netstat -ln |grep 8000 tcp4 0 32768 192.168.1.99.49689 X.X.X.X.8000 CLOSE_WAIT Server side: #netstat -ln |grep "PUBLIC IP FOR ENCODER" No results, showing that the connection has been closed. Here is the liquidsoap log file: 2010/05/07 12:10:57 [src_5752:4] Activations changed: static=[src_5752, meta:aacplus-1:aacplus-1], dynamic=[]. 2010/05/07 12:10:57 [aacplus-1:2] Creating external encoder.. 2010/05/07 12:10:57 [aacplus-1:3] Connecting mount /mount-48k.aac for sou...@server... ************************************************************* * Enhanced aacPlus 3GPP Floating Point Reference Encoder * Build Apr 21 2010, 14:21:43 * ************************************************************* 2010/05/07 12:10:57 [aacplus-1:3] Connection setup was successful. 2010/05/07 12:10:57 [root:3] Broadcast starts up! 2010/05/07 12:17:36 [aacplus-1:2] Cry socket error: timeout, network failure, server shutdown? Restarting the output in 1 seconds. 2010/05/07 12:17:36 [aacplus-1:3] Closing connection... 2010/05/07 12:17:38 [aacplus-1:3] Connecting mount /mount-48k.aac for sou...@server... 2010/05/07 12:17:38 [aacplus-1:3] Connection setup was successful. Any idea why liquidsoap is staying stuck in a CLOSE_WAIT instead of reconnecting right away? Andrew ------------------------------------------------------------------------------ _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users