freebsd relay issue

Steamcast is a stand alone server that combines the features of SHOUTcast and Icecast2 and more to make one mega awesome server.
Post Reply
Lane
Posts: 152
Joined: Mon May 09, 2005 4:16 pm

freebsd relay issue

Post by Lane »

Hey Jay,

I thought I'd bring this to your attention. Not sure if you've heard this before, or how much testing you do on freebsd. I'm hitting a thing where a relay doesn't connect to it's source until after quite a large number of failed connection attempts. Scenario as follows:

Happy little steamcast running, cranking out an mp3 stream, we'll call that Alpha. Another steamcast, configured to relay the first one, that we'll call Beta. Both of these on a freebsd 6.2 server, using the freebsd 5 version of steamcast. When Alpha stops streaming, Beta shows a 404, (that's normal and good), and then a bunch of failed connection attempts (which isn't good, since the server is still running, it just doesn't have an active mount). The failed connection attempts continue even after the service from Alpha has been restored. Looking at Alpha's screen log, I do not see the connection attempts from Beta.

If I go to a completely different server running linux, and set the relay up there, it's fine. It reconnects immediately to Alpha and continues streaming again.

I haven't been able to test on another FreeBSD server, so I don't know if it's a quirk on this server, or a bsd thing, or because I'm using 6.2 or what.

About the shortest time I've observed it reconnect is after 30 seconds. Here is a log that shows the established connection. I then stop the Alpha steamcast server (by turning off the dsp that is casting to it). I turn the dsp back on to resume streaming to Alpha at around attempt [5]. It's about a minute before Beta successfully connects again.

Code: Select all

<10/08/[email protected]:53:22> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [1]
<10/08/[email protected]:53:22> [src] Connection successful to 127.0.0.1:9200/warp-128.mp3
<10/08/[email protected]:53:22> [src] Name:Unnamed Steamcast Server; Genre:Various
<10/08/[email protected]:53:22> [src] Public:0; Bitrate:24; URL:http://www.steamcast.com/
<10/08/[email protected]:53:22> [src] Content-Type: audio/mpeg
<10/08/[email protected]:53:31> [src] Relay Thread #0 lost connection, reconnecting in 1 secs....
<10/08/[email protected]:53:32> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [2]
<10/08/[email protected]:53:32> [src] Connection successful to 127.0.0.1:9200/warp-128.mp3
<10/08/[email protected]:53:32> [src] Relay Thread #0: host returned error (ICY 401 No Source)
<10/08/[email protected]:53:32> [src] Relay Thread #0 lost connection, reconnecting in 1 secs....
<10/08/[email protected]:53:33> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [3]
<10/08/[email protected]:53:33> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:34> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [4]
<10/08/[email protected]:53:34> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:35> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [5]
<10/08/[email protected]:53:35> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:36> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [6]
<10/08/[email protected]:53:36> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:37> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [7]
<10/08/[email protected]:53:37> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:38> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [8]
<10/08/[email protected]:53:38> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:39> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [9]
<10/08/[email protected]:53:39> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:40> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [10]
<10/08/[email protected]:53:40> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:41> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [11]
<10/08/[email protected]:53:41> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:42> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [12]
<10/08/[email protected]:53:42> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:43> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [13]
<10/08/[email protected]:53:43> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:44> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [14]
<10/08/[email protected]:53:44> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:45> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [15]
<10/08/[email protected]:53:45> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:46> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [16]
<10/08/[email protected]:53:46> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:47> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [17]
<10/08/[email protected]:53:47> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:48> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [18]
<10/08/[email protected]:53:48> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:49> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [19]
<10/08/[email protected]:53:49> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:50> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [20]
<10/08/[email protected]:53:50> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:51> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [21]
<10/08/[email protected]:53:51> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:52> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [22]
<10/08/[email protected]:53:52> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:53> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [23]
<10/08/[email protected]:53:53> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:54> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [24]
<10/08/[email protected]:53:54> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:55> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [25]
<10/08/[email protected]:53:55> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:56> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [26]
<10/08/[email protected]:53:56> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:57> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [27]
<10/08/[email protected]:53:57> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:58> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [28]
<10/08/[email protected]:53:58> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:53:59> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [29]
<10/08/[email protected]:53:59> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:00> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [30]
<10/08/[email protected]:54:00> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:01> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [31]
<10/08/[email protected]:54:01> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:02> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [32]
<10/08/[email protected]:54:02> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:03> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [33]
<10/08/[email protected]:54:03> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:04> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [34]
<10/08/[email protected]:54:04> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:05> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [35]
<10/08/[email protected]:54:05> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:06> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [36]
<10/08/[email protected]:54:06> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:07> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [37]
<10/08/[email protected]:54:07> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:08> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [38]
<10/08/[email protected]:54:08> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:09> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [39]
<10/08/[email protected]:54:09> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:10> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [40]
<10/08/[email protected]0:54:10> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:11> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [41]
<10/08/[email protected]:54:11> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:12> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [42]
<10/08/[email protected]:54:12> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:13> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [43]
<10/08/[email protected]:54:13> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:14> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [44]
<10/08/[email protected]:54:14> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:15> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [45]
<10/08/[email protected]:54:15> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:16> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [46]
<10/08/[email protected]:54:16> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:17> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [47]
<10/08/[email protected]:54:17> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:18> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [48]
<10/08/[email protected]:54:18> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:19> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [49]
<10/08/[email protected]:54:19> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:20> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [50]
<10/08/[email protected]:54:20> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:21> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [51]
<10/08/[email protected]:54:21> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:22> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [52]
<10/08/[email protected]:54:22> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:23> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [53]
<10/08/[email protected]:54:23> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:24> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [54]
<10/08/[email protected]:54:24> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:25> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [55]
<10/08/[email protected]:54:25> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:26> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [56]
<10/08/[email protected]:54:26> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:27> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [57]
<10/08/[email protected]:54:27> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:28> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [58]
<10/08/[email protected]:54:28> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:29> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [59]
<10/08/[email protected]:54:29> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:30> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [60]
<10/08/[email protected]:54:30> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:31> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [61]
<10/08/[email protected]:54:31> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:32> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [62]
<10/08/[email protected]:54:32> [src] Relay Thread #0 error: Connection Failed for 127.0.0.1:9200
<10/08/[email protected]:54:33> [src] Attempting a connection with relay: 127.0.0.1:9200/warp-128.mp3 [63]
<10/08/[email protected]:54:33> [src] Connection successful to 127.0.0.1:9200/warp-128.mp3
<10/08/[email protected]:54:33> [src] Name:Unnamed Steamcast Server; Genre:Various
<10/08/[email protected]:54:33> [src] Public:0; Bitrate:24; URL:http://www.steamcast.com/
<10/08/[email protected]:54:33> [src] Content-Type: audio/mpeg

User avatar
Jay
Will work for food (Administrator)
Posts: 2933
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

The next release will throw a more descriptive error out for failed connection calls.
- Jay

Post Reply