Hello,
I found strange issue related to liquidsoap and ShoutCast streaming. When the
target server is down, liquidsoap is doing reconnections:
```
2018/10/27 11:34:51 [output(dot)shoutcast:3] Connecting mount sid#1 for
@s2.host.com...
2018/10/27 11:34:51 [output(dot)shoutcast:2] Connection failed: could not
connect to host: Connection refused in connect()
2018/10/27 11:34:51 [output(dot)shoutcast:3] Will try again in 3.00 sec.
2018/10/27 11:34:51 [stderr:3] strange error flushing buffer ...
2018/10/27 11:34:51 [stderr:3] strange error flushing buffer ...
2018/10/27 11:34:55 [output(dot)shoutcast:3] Connecting mount sid#1 for
@s2.host.com...
2018/10/27 11:34:55 [output(dot)shoutcast:2] Connection failed: could not
connect to host: Connection refused in connect()
2018/10/27 11:34:55 [output(dot)shoutcast:3] Will try again in 3.00 sec.
2018/10/27 11:34:55 [stderr:3] strange error flushing buffer ...
2018/10/27 11:34:55 [stderr:3] strange error flushing buffer ...
2018/10/27 11:34:59 [output(dot)shoutcast:3] Connecting mount sid#1 for
@s2.host.com...
2018/10/27 11:34:59 [output(dot)shoutcast:2] Connection failed: could not
connect to host: Connection refused in connect()
2018/10/27 11:34:59 [output(dot)shoutcast:3] Will try again in 3.00 sec.
2018/10/27 11:34:59 [stderr:3] strange error flushing buffer ...
2018/10/27 11:34:59 [stderr:3] strange error flushing buffer ...
```
It is correct behavior but every connection is kept in system what causes very
fast max open files limit reaching, output of lsof:
```
liquidsoa 13450 stream *357u IPv4 0xfffff802e1020000 0t0
TCP source.pl:47792->dest:18573 (CLOSED)
liquidsoa 13450 stream *358u IPv4 0xfffff8038963b000 0t0
TCP source.pl:47859->dest:18573 (CLOSED)
liquidsoa 13450 stream *359u IPv4 0xfffff803ed5a2410 0t0
TCP source.pl:47934->dest:18573 (CLOSED)
liquidsoa 13450 stream *360u IPv4 0xfffff80302614000 0t0
TCP source.pl:48103->dest:18573 (CLOSED)
liquidsoa 13450 stream *361u IPv4 0xfffff8016df44000 0t0
TCP source.pl:48193->dest:18573 (CLOSED)
liquidsoa 13450 stream *362u IPv4 0xfffff801b6d14410 0t0
TCP source.pl:48856->dest:18573 (CLOSED)
liquidsoa 13450 stream *363u IPv4 0xfffff802e1020410 0t0
TCP source.pl:48280->dest:18573 (CLOSED)
liquidsoa 13450 stream *364u IPv4 0xfffff8015197e820 0t0
TCP source.pl:48429->dest:18573 (CLOSED)
liquidsoa 13450 stream *365u IPv4 0xfffff8025613c410 0t0
TCP source.pl:48529->dest:18573 (CLOSED)
liquidsoa 13450 stream *366u IPv4 0xfffff803fa0d7000 0t0
TCP source.pl:48608->dest:18573 (CLOSED)
liquidsoa 13450 stream *367u IPv4 0xfffff8040d1ed000 0t0
TCP source.pl:48746->dest:18573 (CLOSED)
liquidsoa 13450 stream *368u IPv4 0xfffff8014bd7f000 0t0
TCP source.pl:48955->dest:18573 (CLOSED)
liquidsoa 13450 stream *369u IPv4 0xfffff8029ffb1820 0t0
TCP source.pl:49095->dest:18573 (CLOSED)
liquidsoa 13450 stream *370u IPv4 0xfffff80274640820 0t0
TCP source.pl:49203->dest:18573 (CLOSED)
liquidsoa 13450 stream *371u IPv4 0xfffff802c325e410 0t0
TCP source.pl:49273->dest:18573 (CLOSED)
liquidsoa 13450 stream *372u IPv4 0xfffff801aca9b000 0t0
TCP source.pl:49417->dest:18573 (CLOSED)
liquidsoa 13450 stream *373u IPv4 0xfffff8028664a820 0t0
TCP source.pl:49519->dest:18573 (CLOSED)
liquidsoa 13450 stream *374u IPv4 0xfffff8005a4c4820 0t0
TCP source.pl:49660->dest:18573 (CLOSED)
liquidsoa 13450 stream *375u IPv4 0xfffff80278361820 0t0
TCP source.pl:49883->dest:18573 (CLOSED)
liquidsoa 13450 stream *376u IPv4 0xfffff802a148c410 0t0
TCP source.pl:50064->dest:18573 (CLOSED)
liquidsoa 13450 stream *377u IPv4 0xfffff803759e8820 0t0
TCP source.pl:50226->dest:18573 (CLOSED)
liquidsoa 13450 stream *378u IPv4 0xfffff803043e9000 0t0
TCP source.pl:50436->dest:18573 (CLOSED)
liquidsoa 13450 stream *379u IPv4 0xfffff80210cf9000 0t0
TCP source.pl:50628->dest:18573 (CLOSED)
liquidsoa 13450 stream *380u IPv4 0xfffff80369e82410 0t0
TCP source.pl:50778->dest:18573 (CLOSED)
liquidsoa 13450 stream *381u IPv4 0xfffff800a642b000 0t0
TCP source.pl:50986->dest:18573 (CLOSED)
liquidsoa 13450 stream *382u IPv4 0xfffff8029e794410 0t0
TCP source.pl:51171->dest:18573 (CLOSED)
liquidsoa 13450 stream *383u IPv4 0xfffff8029ffb1410 0t0
TCP source.pl:51328->dest:18573 (CLOSED)
liquidsoa 13450 stream *384u IPv4 0xfffff800122ab410 0t0
TCP source.pl:51470->dest:18573 (CLOSED)
liquidsoa 13450 stream *385u IPv4 0xfffff803fa0d7410 0t0
TCP source.pl:51582->dest:18573 (CLOSED)
liquidsoa 13450 stream *386u IPv4 0xfffff80301fbd820 0t0
TCP source.pl:51683->dest:18573 (CLOSED)
liquidsoa 13450 stream *387u IPv4 0xfffff80395833820 0t0
TCP source.pl:51814->dest:18573 (CLOSED)
liquidsoa 13450 stream *388u IPv4 0xfffff8008aa60820 0t0
TCP source.pl:51928->dest:18573 (CLOSED)
liquidsoa 13450 stream *389u IPv4 0xfffff80334d46410 0t0
TCP source.pl:51996->dest:18573 (CLOSED)
liquidsoa 13450 stream *390u IPv4 0xfffff803fa6ad410 0t0
TCP source.pl:52133->dest:18573 (CLOSED)
liquidsoa 13450 stream *391u IPv4 0xfffff8028664a410 0t0
TCP source.pl:52275->dest:18573 (CLOSED)
liquidsoa 13450 stream *392u IPv4 0xfffff801a3d35410 0t0
TCP source.pl:52376->dest:18573 (CLOSED)
liquidsoa 13450 stream *393u IPv4 0xfffff800a30e3000 0t0
TCP source.pl:52463->dest:18573 (CLOSED)
liquidsoa 13450 stream *394u IPv4 0xfffff80297523820 0t0
TCP source.pl:52606->dest:18573 (CLOSED)
liquidsoa 13450 stream *395u IPv4 0xfffff800aec3a000 0t0
TCP source.pl:52693->dest:18573 (CLOSED)
liquidsoa 13450 stream *396u IPv4 0xfffff80153c67820 0t0
TCP source.pl:52796->dest:18573 (CLOSED)
liquidsoa 13450 stream *397u IPv4 0xfffff8039dd67000 0t0
TCP source.pl:52943->dest:18573 (CLOSED)
liquidsoa 13450 stream *398u IPv4 0xfffff8008aa60000 0t0
TCP source.pl:53033->dest:18573 (CLOSED)
```
```
# lsof | grep 13450 | grep CLOSED | wc -l
73782
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/649
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users