<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><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-family: times new roman,new york,times,serif; font-size:
12pt;">----- 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><title>Re: [Live-devel] Max limit for RTSPClientSession instances</title>
<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 size="2" face="Arial"></font> </div><div><font size="2" face="Arial">Thank you for your fast response. </font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">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 size="2" face="Arial">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 size="2" face="Arial">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 size="2" face="Arial"></font> </div><div><font size="2" face="Arial">Do you think I run into an "max open socket"
limit (even if 210 is much less than 65535)?</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial">Thank you very much,</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"> Renato MAURO</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"></font> </div><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">----- Original Message ----- </div><div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin:
-moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>From:</b> <a rel="nofollow" title="finlayson@live555.com" ymailto="mailto:finlayson@live555.com" target="_blank" href="mailto:finlayson@live555.com">Ross
Finlayson</a> </div><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>To:</b> <a rel="nofollow" title="live-devel@ns.live555.com" ymailto="mailto:live-devel@ns.live555.com" target="_blank" href="mailto:live-devel@ns.live555.com">LIVE555 Streaming Media - development
& use</a> </div><div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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 size="2" face="Arial"></font><br></div><blockquote cite="" type="cite"><font size="-1" face="Arial">
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 size="2" face="Arial"></font> </blockquote><blockquote cite="" type="cite"><font size="-1" face="Arial">
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 size="2" face="Arial"></font><font size="2" face="Arial"></font><font size="2" face="Arial"></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 size="2" face="Arial"></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></body></html>