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:
Marek Habersack 2007-08-18 20:47:28 +00:00
Родитель 7bf024de47
Коммит a6ade495a9
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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)