RTC Forums
April 29, 2024, 02:09:44 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Property TotalConnectionCount  (Read 3192 times)
jpr
Newbie
*
Posts: 3


« on: August 27, 2013, 10:23:18 AM »

Hi,

I just purchased the RTC SDK  Grin
I'm testing the property TotalConnectionCount with the project RTCWebServer.
I disconnected the file provider to have the message Status 400: Bad Request.
So in that config, I've got 2 for the property TotalConnectionCount when I tried to access to the page http://127.0.0.1/index.html
After 10 seconds one connection close and after one minute the other close.

Questions:
  - Why 2 connections ?
  - Why connections stay open ?

Regards,

JP
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: August 27, 2013, 10:49:40 AM »

Unless you explicitly set Timeout values on the Server to close idle connections, or close the connections manually by calling Disconnect, the Client (in your case, the Web Browser) will decide how long a connection will stay open. The number of connections used to send Requests is also decided on the Client-side. The Server simply accepts connections and processes requests.

PS. It is good practice to allow connections to remain open for some time (normally up to 2 minutes) when they are NOT in use, because the process of opening and closing connections can be "expensive" and the user might want to send more requests to the Server. Most Browsers (and the WinInet API - used by the Internet Explorer and the RTC SDK when "useProxy=True") will keep a connection open for some time after use.

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 16 queries.