<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://3897/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">I am working on a windows service (a “Manager”) that starts, monitors, and stops multiple Proxy servers. These proxy servers are based on your Live555 Proxy Server code. Each proxy is serving a single stream from a single back end camera.</div></div></div></blockquote><div><br></div>Note that you don't have to do that. It's possible for a single proxy server to serve multiple 'back end' streams. (E.g., our "LIVE555 Proxy Server" application can do this.)</div><div><br></div><div><br><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 11pt; ">During the lifetime of the proxy, I expect that the back end connection could terminate for some reason, or not connect at all in the first place. I have been looking for a hook to report this state back to the manager, but have not been successful. Does the RTSPClient provide any type of event, or other signal that could be used by other processes/services for the purpose of monitoring the state of the back end connection?</span></div></div></div></blockquote><div><br></div>Note that our proxy server code already monitors and keeps alive the connection to each of its 'back end' server. This is not something that you need to handle separately.</div><div><br></div><div><br><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span style="font-size: 11pt; ">In our system, we also have an archiving service. This service connects to the stream provided by the proxy and archives the data to a file. One archiver exists for each proxy. The Archiver uses the OpenRTSP client to achieve this. I have noticed that if the OpenRTSP client terminates unexpectedly, the CPU usage of the proxy skyrockets from about .07 average up to around 22.5 average. We run about 25 of the proxies, so you can imagine the hit if 4 of these clients die. In the case where the archiving service as a whole dies, all of the clients can terminate, which leaves us with 25 proxies running at around a 22% CPU usage with makes the system unusable.</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">I had considered monitoring the CPU load on all of the proxies through the manager, and terminating/restarting any that run high on CPU usage. But I was wondering if you could shed some light on what is going on in the proxy to produce this effect.</div></div></div></blockquote><div><br></div>Sorry - no idea. That's something that you're going to have to track down yourself.</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>