o0111 / ruralcafe

Automatically exported from code.google.com/p/ruralcafe
0 stars 0 forks source link

Counting and limiting the number of active requests in LocalProxy.cs #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There are two unused variables for counting and limiting the number of active 
requests in the local proxy. There needs to be a connection manager implemented 
to do this, whether it is as a separate class or internal set of methods is up 
to the implementer.

Original issue reported on code.google.com by shouldab...@gmail.com on 10 Oct 2010 at 7:13

GoogleCodeExporter commented 8 years ago
Do you mean something like this?
http://msdn.microsoft.com/en-us/library/lync/bb758977%28v=office.12%29.aspx

Or do you rather mean a self-implemented way to count and restrict connections? 
In the latter case, what would be the desired behaviour if a connection is 
being refused? The current, implementation (commented out) sleeps 100 ms until 
there are free "slots".

Original comment by satiaher...@gmx.de on 8 Apr 2013 at 5:55

GoogleCodeExporter commented 8 years ago
The latter. I'm not sure exactly what the current implementation does, but the 
idea is probably just so the local proxy doesn't get overwhelmed. Later on we 
may look at something a bit fancier.

Original comment by shouldab...@gmail.com on 8 Apr 2013 at 6:22

GoogleCodeExporter commented 8 years ago
Connection Management for Local Proxy

Very simple connection count and denial in the local proxy. If there are more 
than 50 active requests, the RCLocalProxy waits repeatedly 100 ms, until there 
is a free slot
before it listens on the port again. Needed to ad a method for in- and 
decrement the value thread safe before and after handling the request.

The MAXIMUM_ACTIVE_REQUESTS should be moved to the configuration file?

Original comment by satiaher...@gmx.de on 10 Apr 2013 at 5:23

GoogleCodeExporter commented 8 years ago
Yes, that seems appropriate for now.

Original comment by shouldab...@gmail.com on 18 Apr 2013 at 11:48

GoogleCodeExporter commented 8 years ago
I will move it into the config file.

Original comment by satiaher...@gmx.de on 21 Apr 2013 at 10:36

GoogleCodeExporter commented 8 years ago
Moved to the config file.

Original comment by satiaher...@gmx.de on 21 Apr 2013 at 6:38

GoogleCodeExporter commented 8 years ago

Original comment by satiaher...@gmx.de on 1 May 2013 at 10:53

GoogleCodeExporter commented 8 years ago

Original comment by satiaher...@gmx.de on 1 May 2013 at 10:54