View previous topic :: View next topic |
Author |
Message |
unnamed Guest
|
Posted: Thu Mar 23, 2006 12:14 pm Post subject: libshout2.2 die if kicked off server |
|
|
hi! i have a problem with new generation of libshout - 2.2
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
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Mar 23, 2006 4:34 pm Post subject: |
|
|
That isn't a crash, I don't think the example program reconnects on connection drop, ezstream should though
karl. |
|
Back to top |
|
|
unnamed Guest
|
Posted: Thu Mar 23, 2006 9:52 pm Post subject: |
|
|
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
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Mar 23, 2006 11:54 pm Post subject: |
|
|
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 |
|
|
unnamed Guest
|
Posted: Mon Mar 27, 2006 6:52 pm Post subject: |
|
|
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 |
|
|
|