зеркало из https://github.com/mono/xsp.git
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
This commit is contained in:
Родитель
7bf024de47
Коммит
a6ade495a9
|
@ -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
|
||||
|
|
|
@ -183,8 +183,8 @@ namespace Mono.WebServer
|
|||
|
||||
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче