<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 12: Socket closed by server after pausing streaming</title><link>https://sourceforge.net/p/libmms/bugs/12/</link><description>Recent changes to 12: Socket closed by server after pausing streaming</description><atom:link href="https://sourceforge.net/p/libmms/bugs/12/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 01 Dec 2011 14:31:04 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/libmms/bugs/12/feed.rss" rel="self" type="application/rss+xml"/><item><title>Socket closed by server after pausing streaming</title><link>https://sourceforge.net/p/libmms/bugs/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm using gstreamer (through gst-launch or totem) to play MMS streams. I discovered that after a quite long pause (about 1 minute or so), the stream cannot come to its end, it just plays until the buffering queue is empty.&lt;br /&gt;
I used the environnement variable LIBMMS_DEBUG to debug libmms, and saw error messages coming from the lib after I try to unpause the stream:&lt;br /&gt;
"mms: error reading packet header&lt;br /&gt;
mms: get_media_packet failed&lt;br /&gt;
mms: failed to send command 0x07"&lt;/p&gt;
&lt;p&gt;After looking into libmms code, I saw that the "error reading packet header" was due to an io_read returning 0.&lt;br /&gt;
So I used netstat (netstat --tcp --numeric --programs) and could see that the socket for data exchange was in CLOSE_WAIT state, meaning the server closed its connection.&lt;/p&gt;
&lt;p&gt;Do you think there is any keep-alive mechanism in the MMS protocol to prevent the server closing its connection?&lt;/p&gt;
&lt;p&gt;I'm using libmms-0.6.2.&lt;br /&gt;
I used an MMS link pointing to video clips, so they are not live streams. I did not try live streams like radios.&lt;/p&gt;
&lt;p&gt;Let me know if you need more informations about this.&lt;/p&gt;
&lt;p&gt;Thanks a lot,&lt;br /&gt;
Christophe Dongieux.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cdo</dc:creator><pubDate>Thu, 01 Dec 2011 14:31:04 -0000</pubDate><guid>https://sourceforge.netca730c826ce27ec05a7c35ebbea9104241efa067</guid></item></channel></rss>