Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Icecast is disconnecting listeners after one hour
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
radiomg



Joined: 12 Jul 2014
Posts: 16

PostPosted: Tue Jul 22, 2014 12:19 pm    Post subject: Reply with quote

*bump*

I have the exact same problem. Shoutcast dont drop listerners but icecast do. After exact 74 min is disconnect my listerners.. I have test with 3 players and all drop listerners after 74 min.

I have test it from 3 computers (around the world) and it drops listerners after 74 min. When i check error file it says nothing. No error.. i I have it on loglevel 4.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jul 23, 2014 9:08 am    Post subject: Reply with quote

if icecast drops them then it will log some cause for it, whether they are behind or there's a kill or the source drops. The only case where not much is logged is when the peer connection dies which is what happens if the listener stops playing or the connection terminates for other reasons.


karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
radiomg



Joined: 12 Jul 2014
Posts: 16

PostPosted: Wed Jul 23, 2014 1:03 pm    Post subject: Reply with quote

This is what the logfile says..

[2014-07-23 15:01:20] DBUG stats/modify_node_event update node total_bytes_sent (610211)
[2014-07-23 15:01:22] DBUG stats/modify_node_event update node total_bytes_read (671693400)
[2014-07-23 15:01:22] DBUG stats/modify_node_event update node total_bytes_sent (1756225739)
[2014-07-23 15:01:25] DBUG stats/modify_node_event update node total_bytes_read (0)
[2014-07-23 15:01:25] DBUG stats/modify_node_event update node total_bytes_read (0)
[2014-07-23 15:01:25] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2014-07-23 15:01:25] DBUG stats/modify_node_event update node total_bytes_sent (610211)
[2014-07-23 15:01:27] WARN connection/recheck_ip_file failed to check status of "ban.txt": No such file or directory
[2014-07-23 15:01:27] DBUG admin/admin_handle_request Admin request (/admin/metadata)
[2014-07-23 15:01:27] DBUG admin/admin_handle_request Got command (metadata)
[2014-07-23 15:01:27] INFO admin/admin_handle_request Received admin command metadata on mount "/live.mp3"
[2014-07-23 15:01:27] DBUG admin/command_metadata Got metadata update request
[2014-07-23 15:01:27] INFO admin/command_metadata Metadata on mountpoint /live.mp3 changed to "Cavalkad - All You Ever Do Is Bring Me Down"
[2014-07-23 15:01:27] DBUG fserve/fserve_add_client Adding client to file serving engine
[2014-07-23 15:01:27] DBUG stats/modify_node_event update node clients (9)
[2014-07-23 15:01:27] DBUG stats/modify_node_event update node connections (1873)
[2014-07-23 15:01:27] DBUG stats/modify_node_event update node total_bytes_read (671774075)
[2014-07-23 15:01:27] DBUG stats/modify_node_event update node total_bytes_sent (1756784354)
[2014-07-23 15:01:27] DBUG stats/modify_node_event update node client_connections (1829)
[2014-07-23 15:01:27] DBUG stats/modify_node_event update node clients (Cool
[2014-07-23 15:01:27] DBUG stats/modify_node_event update node title (Cavalkad - All You Ever Do Is Bring Me Down)
[2014-07-23 15:01:30] DBUG stats/modify_node_event update node total_bytes_read (0)
[2014-07-23 15:01:30] DBUG stats/modify_node_event update node total_bytes_read (0)
[2014-07-23 15:01:30] DBUG stats/modify_node_event update node total_bytes_sent (610211)
[2014-07-23 15:01:30] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2014-07-23 15:01:32] DBUG stats/modify_node_event update node total_bytes_read (671853505)
[2014-07-23 15:01:32] DBUG stats/modify_node_event update node total_bytes_sent (1757343161)
[2014-07-23 15:01:35] DBUG stats/modify_node_event update node total_bytes_read (0)
[2014-07-23 15:01:35] DBUG stats/modify_node_event update node total_bytes_read (0)
[2014-07-23 15:01:35] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2014-07-23 15:01:35] DBUG stats/modify_node_event update node total_bytes_sent (610211)
[2014-07-23 15:01:37] DBUG stats/modify_node_event update node total_bytes_read (671932800)
[2014-07-23 15:01:37] DBUG stats/modify_node_event update node total_bytes_sent (1757901776)
[2014-07-23 15:01:40] DBUG stats/modify_node_event update node total_bytes_read (0)
[2014-07-23 15:01:40] DBUG stats/modify_node_event update node total_bytes_read (0)
[2014-07-23 15:01:40] DBUG stats/modify_node_event update node total_bytes_sent (0)
[2014-07-23 15:01:40] DBUG stats/modify_node_event update node total_bytes_sent (610211)
Back to top
View user's profile Send private message
radiomg



Joined: 12 Jul 2014
Posts: 16

PostPosted: Wed Jul 23, 2014 1:22 pm    Post subject: Reply with quote

This is my config file:

Code:
<icecast>
   <limits>
      <clients>203</clients>
      <sources>10</sources>
      <threadpool>5</threadpool>
      <queue-size>524288000000000000</queue-size>
      <client-timeout>30</client-timeout>
      <source-timeout>10</source-timeout>
      <header-timeout>15</header-timeout>
      <burst-size>196608</burst-size>
   </limits>

   <authentication>
      <source-password>##</source-password>
      <admin-user>admin</admin-user>
      <admin-password>##</admin-password>
   </authentication>

   <mount>
      <mount-name>/live.mp3</mount-name>
      <max-listeners>200</max-listeners>
      <fallback-mount>/tmp.mp3</fallback-mount>
      <fallback-override>1</fallback-override>
      <on-disconnect>/home/mscplitescripts/disc</on-disconnect>
      <on-connect>/home/mscplitescripts/connect</on-connect>
      <limit-rate>1500k</limit-rate>
   </mount>

   <mount>
      <mount-name>/live2.mp3</mount-name>
      <max-listeners>200</max-listeners>
      <fallback-mount>/trtmp.mp3</fallback-mount>
      <fallback-override>1</fallback-override>
      <on-disconnect>/home/mscplitescripts/disconnecttrans</on-disconnect>
      <on-connect>/home/mscplitescripts/connecttrans</on-connect>
      <limit-rate>1500k</limit-rate>
   </mount>

   <hostname>5.135.156.98</hostname>

   <listen-socket>
      <port>7350</port>
      <shoutcast-mount>/live.mp3</shoutcast-mount>
   </listen-socket>

   <fileserve>1</fileserve>

   <paths>
      <basedir>.</basedir>
      <logdir>./log</logdir>
      <webroot>./web</webroot>
      <adminroot>./admin</adminroot>
      <alias source="/" dest="/live.mp3"/>
      <alias source="/;stream" dest="/live.mp3"/>
      <alias source="/;s.mp3" dest="/live.mp3"/>
      <alias source="/7.html" dest="/status7.xsl"/>
      <alias source="/7" dest="/status7.xsl"/>
      <deny-ip>ban.txt</deny-ip>
   </paths>

   <logging>
      <accesslog>access.log</accesslog>
      <errorlog>error.log</errorlog>
      <loglevel>4</loglevel>
      <logsize>10000</logsize>
   </logging>

   <security>
      <chroot>0</chroot>
   </security>
</icecast>
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Jul 24, 2014 8:37 am    Post subject: Reply with quote

<queue-size>524288000000000000</queue-size>

interesting, I guess your 0 key became stuck on that one. please fix and retry. Hint try say 1 Meg. As for the log, show a point where a listener is dropped.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
radiomg



Joined: 12 Jul 2014
Posts: 16

PostPosted: Thu Jul 24, 2014 9:48 am    Post subject: Reply with quote

i change that after i read this tree ... Before i have <queue-size>524288</queue-size> and it was the same.

How should i change?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Jul 24, 2014 11:31 pm    Post subject: Reply with quote

How? using your favourite text editor, just make sure it is sensibly enough over the burst size and not some stupid value.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
radiomg



Joined: 12 Jul 2014
Posts: 16

PostPosted: Thu Jul 24, 2014 11:36 pm    Post subject: Reply with quote

I mean of course what number it should be there. Smile Should i use 524288?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jul 25, 2014 1:14 pm    Post subject: Reply with quote

sounds ok, it's just the max size in bytes of the queue, so bitrate (in bytes) * N seconds. It's just a trigger level, no need to be some multiple, but should be a reasonable amount above the burst size.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber