<!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=utf-8">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Alkassoum, hi Ross.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Alkassoum, thank you very much,
you solved my problem.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Ross, thank you for your
suggestion.</FONT></DIV>
<DIV><FONT face=Arial size=2></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>
<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=aahmoud@paraxip.com href="mailto:aahmoud@paraxip.com">ahmoud
alkassoum</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> Tuesday, July 22, 2008 3:08
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Norton AntiSpam] [Live-devel]
Re : Max limit for RTSPClientSession instances?</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">
<DIV style="TEXT-ALIGN: left"></DIV>
<DIV style="TEXT-ALIGN: left">Hi Mauro,<BR>If you are running your application
under windows you might have the same problem i had few months ago.<BR>My
problem was due to an windows OS limitation on the number of sockets that can
be open at any one time. <BR>On windows the FD_SETSIZE parameter have a
default value of 64, so with that default value,<BR>the server can only handle
64/2 = 32 clients at the same time ( 2 sockets<BR>per client). So to solve my
problem i only had to increase the FD_SETSIZE<BR>parameter.<BR><BR>Hope that
this information did help you.<BR></DIV><PRE>Alkassoum<BR><BR></PRE><BR>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">-----
Message d'origine ----<BR>De : Renato MAURO (Libero)
<renatomauro@libero.it><BR>À : LIVE555 Streaming Media - development
& use <live-devel@ns.live555.com><BR>Envoyé le : Lundi, 21 Juillet
2008, 16h05mn 15s<BR>Objet : Re: [Live-devel] Max limit for
RTSPClientSession instances?<BR><BR>
<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>
<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, ie. (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: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; x-system-font: none">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; x-system-font: none; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=finlayson@live555.com href="mailto:finlayson@live555.com"
target=_blank rel=nofollow ymailto="mailto:finlayson@live555.com">Ross
Finlayson</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; x-system-font: none"><B>To:</B>
<A title=live-devel@ns.live555.com href="mailto:live-devel@ns.live555.com"
target=_blank rel=nofollow
ymailto="mailto:live-devel@ns.live555.com">LIVE555 Streaming Media -
development & use</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; x-system-font: none"><B>Sent:</B>
Monday, July 21, 2008 1:56 PM</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; x-system-font: none"><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><PRE>-- <BR></PRE>
<DIV><FONT face=Arial size=2></FONT><BR>Ross Finlayson<BR>Live Networks,
Inc.<BR>http://www.live555.com/</DIV>
<P></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></DIV></DIV></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>