Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2007-08-18 Josh Tauberer <jit@occams.info>

            * src/Mono.WebServer/BaseRequestBroker.cs: Correct a mistake
            in my previous patch: checking for wrap-around on requests_served
            counter, since we bitmask it 0x7FFF, wrap-around occurs at 0x8000.

svn path=/trunk/xsp/; revision=84355
  • Loading branch information...
commit a6ade495a906624a13647430e6e82cffda9aa9d0 1 parent 7bf024d
@grendello grendello authored
Showing with 8 additions and 2 deletions.
  1. +6 −0 ChangeLog
  2. +2 −2 src/Mono.WebServer/BaseRequestBroker.cs
View
6 ChangeLog
@@ -1,3 +1,9 @@
+2007-08-18 Josh Tauberer <jit@occams.info>
+
+ * src/Mono.WebServer/BaseRequestBroker.cs: Correct a mistake
+ in my previous patch: checking for wrap-around on requests_served
+ counter, since we bitmask it 0x7FFF, wrap-around occurs at 0x8000.
+
2007-08-16 Wade Berrier <wberrier@novell.com>
* configure.in: version bump -> 1.2.5
View
4 src/Mono.WebServer/BaseRequestBroker.cs
@@ -183,8 +183,8 @@ int GetNextRequestId ()
requests_served++; // increment to 1 before putting into request_ids
// so that the 0 id is reserved for slot not used
- if (requests_served == 0) // and check for wrap-around for the above
- requests_served++; // condition
+ if (requests_served == 0x8000) // and check for wrap-around for the above
+ requests_served = 1; // making sure we don't exceed 0x7FFF or go negative
requests_count++;
if (requests_count >= reqlen)
Please sign in to comment.
Something went wrong with that request. Please try again.