ncannasse / haxevideo

FLV streaming server
4 stars 1 forks source link

After some time (depending on encoding settings), recording stops, exception raised #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. from your swf app, initiate an rtmp connection to HaXeVideoServer
2. once connected do a getCamera() and start publishing with
publish("test.flv","record")
3. After some times (less than a minute usually, depending on cam settings)
an exception is raised but client is not disconnected 

What is the expected output? What do you see instead?
Expected Output : lovely flv
Instead : 

[2007-10-01 21:42:42] >>
Called from hxvid/RealtimeServer.hx line 109
Called from hxvid/RealtimeServer.hx line 257
Called from hxvid/Server.hx line 121
Called from hxvid/Client.hx line 543
Called from format/Rtmp.hx line 136
RealtimeServer.hx:111: ARRG NOT OK
Client.hx:512: CLEANUP
Client.hx:368: IN CLOSESTREAM
client has disconnected !
Server.hx:82: current users CONNECTED  0

What version of the product are you using? On what operating system?
OS : linux , Version is trunk

Please provide any additional information below.

It seems that the error is logged here :

    function readWriteThread( t : ThreadInfos ) {
        var socks = neko.net.Socket.select(t.socks,t.wsocks,null,config.connectLag);
        for( s in socks.read ) {
            var ok = try clientRead(getInfos(s)) catch( e : Dynamic ) { logError(e);
false; };
            if( !ok ) {
                trace("ARRG NOT OK");
                socks.write.remove(s);
                cleanup(t,s);
            }
        }
        for( s in socks.write ) {
            var ok = try clientWrite(getInfos(s)) catch( e : Dynamic ) {
logError(e); false; };
            if( !ok )
                cleanup(t,s);
        }
    }

While calling the clientRead() method the user is then disconnected.
Client is developped in Flex, but i reproduced the pb with haxe client.
Configuration is : server and client are running on same computer.

Thanks

Sebastien

Original issue reported on code.google.com by spas...@motionsponsor.com on 1 Oct 2007 at 6:45

GoogleCodeExporter commented 9 years ago
More testings showed that, when the problem occurs t.socks.length==1 (i test 
with
only one client connected) but socks.read.length==0 thus no further clientRead 
is
performed.
Hope that will help.

Cheers

Seb

Original comment by spas...@motionsponsor.com on 2 Oct 2007 at 9:17

GoogleCodeExporter commented 9 years ago
There was a BytesReaded packet need to be sent between client and server. This 
is now
fixed on SVN and live streaming is now working. Please test and report back if 
you
still have an error.

Original comment by ncanna...@gmail.com on 15 Dec 2007 at 9:02