<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [Live-devel] Max limit for RTSPClientSession instances</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE type=text/css>BLOCKQUOTE {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
DL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
UL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
OL {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
LI {
        PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
</STYLE>
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV>>you may have run into a limit - in your operating system - of how many
open files it can have;</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you for your fast response. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm not reading data from files; my
application receives data from a custom HW and uses Live555 to receive the
streams from the HW and offer them through RSTPServer. I found that the 36 input
streams are well received. The first 32 (and just now I reached 34) clients are
well accepted. </FONT><FONT face=Arial size=2>Using TcpView, I see 210 active
sockets, i.e. (36 in + 34 out)*(1 rtp + 2 UDP) = 210; besides there
is one RTP socket opened and closed due to the 35th client's
periodic attempt to get its stream.</FONT></DIV>
<DIV><FONT face=Arial size=2>For your information, I have 37 environments, each
with its own doEventLoop thread; one is for the unique RTSPServer instance and
the others for the 36 RTSPClient instances. The RSTPServer has 36 session
instances, which are fed via circular buffer (a new DeviceSource).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Do you think I run into an "max open socket"
limit (even if 210 is much less than 65535)?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you very much,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Renato MAURO</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=finlayson@live555.com href="mailto:finlayson@live555.com">Ross
Finlayson</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=live-devel@ns.live555.com
href="mailto:live-devel@ns.live555.com">LIVE555 Streaming Media - development
& use</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 21, 2008 1:56 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Live-devel] Max limit for
RTSPClientSession instances?</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<BLOCKQUOTE cite="" type="cite"><FONT face=Arial size=-1>
I wrote an RTSPServer application using Live555. I have 36 different
sessions, each with one video subsession. It works and have one limit
only: it seems to be impossible to serve more than 32 client requests at a
time(no difference between 32 clients on the same session or one client on
32 out of 36 sessions). On the client side, the ,
rtspClient->sendOptionsCmd(url) methos fails.</FONT></BLOCKQUOTE>
<BLOCKQUOTE cite="" type="cite"><FONT face=Arial
size=2></FONT> </BLOCKQUOTE>
<BLOCKQUOTE cite="" type="cite"><FONT face=Arial size=-1>
I will debug my application more deeply in order to understand where, on the
server side, the client request is not satisfied; by now my "high level
analysis" question is: is there any max limit for RTSPClientSession
instances?</FONT></BLOCKQUOTE>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><BR></DIV>
<DIV>Not in our code; however, you may have run into a limit - in your
operating system - of how many open files it can have (for each process) at a
time. Depending on your OS, there should be a way to increase that
limit.</DIV><X-SIGSEP><PRE>--
</PRE></X-SIGSEP>
<DIV><FONT face=Arial size=2></FONT><BR>Ross Finlayson<BR>Live Networks,
Inc.<BR>http://www.live555.com/</DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>live-devel mailing
list<BR>live-devel@lists.live555.com<BR>http://lists.live555.com/mailman/listinfo/live-devel<BR></BLOCKQUOTE></BODY></HTML>