Skip to main content
Chicohuman
Known Participant
May 1, 2011
Question

"Server rejected an invalid flow" - RTMFP stops working.

  • May 1, 2011
  • 1 reply
  • 5958 views

Hi,

Sometimes RTMFP stops working on my server, and I have to restart it for RTMFP to work again.

Here is what I saw in the error log :

2011-04-29 05:43:17 26120 (i)2631502 The server rejected an invalid flow. -

2011-04-29 05:44:22 26120 (i)2641213 Connection rejected by server. Reason : [ Server.Reject ] : Adaptor: _defaultRoot_, VHost: TheFMSServer, App: Application/_definst_, (onConnect call failed) -

2011-04-29 06:01:27 26120 (i)2631502 The server rejected an invalid flow. -

2011-04-29 06:01:44 26120 (i)2631502 The server rejected an invalid flow. -

2011-04-29 06:01:44 26120 (i)2631502 The server rejected an invalid flow. -

2011-04-29 06:02:02 26120 (i)2631502 The server rejected an invalid flow. -

2011-04-29 06:04:35 16608 (i)2581247 Core (16608) disconnected from edge. -

2011-04-29 06:04:35 16608 (i)2581233 Core (16608) disconnecting from admin: 200. -

2011-04-29 06:04:50 15624 (i)2581247 Core (15624) disconnected from edge. -

2011-04-29 06:04:50 15624 (i)2581233 Core (15624) disconnecting from admin: 200.

I haven't found anything on Google for this error.

Any help will be appreciated!

Thanks

    This topic has been closed for replies.

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    May 2, 2011

    Hi,

    Thanks for using RTMFP,

    i am not sure of these errors, but it seems definite from the logs below that FMS is actively rejecting the incoming connections because of an unexpected data (invalid flow).


    Can you give us more information on this one, viz, any particular application code / client application that is worth taking a look, or a brief explanation of your scenario please ?

    We need to probably track this down to see what's causing the invalid data flow. Once we can get rid of that, probably there won't be any restarts that are required.

    Please let us know.

    Thank you ! 

    Chicohuman
    Known Participant
    May 3, 2011

    Hi, thanks for the reply.

    The "onConnect" command is used on our server-side code to connect the users to the FMS server.

    I was thinking that it could be related to my webhost plan on the number of concurrent connections I can allow, but it seems to be greater than the number of users using the application at the same time. Also, it doesn't entirely shut down the server, but only RTMFP.

    Perhaps this is still the problem and I should try to increase the maximum amount of possible RTMFP/RTMP connections on the server.

    Thanks

    Nikhil_Kalyan
    Participating Frequently
    May 3, 2011

    Few points to clarify on the notes you made above :

    I think if the max connection limit is exceed, i would expect the logs also to mention very much the same, viz, "max connections limit exceeded, rejecting the connection" instead of the logs that you are getting, which imply active rejection by the server for some reason.

    And the other point regarding the RTMFP being down and the rest of the server available, FMS spawns core processes for each of the tasks/applications that we have. Hence for all of your RTMFP connections, there might a single core process that is working. And any other connections (RTMP or otherwise) to the FMS will be handled by other processes. Hence, if any failure happens, not all the FMS and its processes are effected  and ony the relavent problems will be hit.

    Anyways, i would still request you to go ahead with your plan of changing the max concurrent connections and see if there is anything that you can observe.


    Thank you !