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 

libshout2.2 die if kicked off server

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
unnamed
Guest





PostPosted: Thu Mar 23, 2006 12:14 pm    Post subject: libshout2.2 die if kicked off server Reply with quote

hi! i have a problem with new generation of libshout - 2.2 Sad

1. compiled example at libshout-2.2/examples/example.c
2. fireup icecast 2.3.1 server
3. launch browser and go to http://myserver/admin/ page
4. launch ./example and stream an simple 128k mp3 file to icecast server
(in browser, i see logged in source client)

now i kill from icecast admin page my source (/admin/killsource.xsl?mount=/master)

after that, i got this at linux console:
# ./example
Connected to server...
Broken pipe
Press any key to continue...


machine is a p4-3.0Ghz with 1Gig of RAM and RedHat 7.3 Distro.

i *really* want to get something like "DEBUG: Send error:"
and shout_send() is return me some error. NOT a crash! Just an error!
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Mar 23, 2006 4:34 pm    Post subject: Reply with quote

That isn't a crash, I don't think the example program reconnects on connection drop, ezstream should though

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





PostPosted: Thu Mar 23, 2006 9:52 pm    Post subject: Reply with quote

KarlH excuseme...i don't want reconnect..... my question is WHAT I CAN DO to stop libshout crashing if server is kicked off my stream?

i think this is not an ' libshout example' trouble. (and i copy-paste test
results) this is a wide trouble.
Simply : libshout dont have this message "Broken Pipe". This message come from the OS?

i want ONLY prevent libshout crashing in function shout_send() .
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Mar 23, 2006 11:54 pm    Post subject: Reply with quote

The 'Broken Pipe' is a message printed by the example application based on an error returned by the OS. The socket was closed so no data can be sent, as to why it was closed I can't say as I don't have access to your icecast logs.

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





PostPosted: Mon Mar 27, 2006 6:52 pm    Post subject: Reply with quote

so for a example simply type: killall -9 icecast
In a real world reasons may vary, but for our stress test this approach.

and now libshout2.2 example is crashed with message from os 'broken pipe' !

how to fix/handle this ?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
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