[more theme tweaks. plus a minor typo fix Jeremy Shaw **20110524210452 Ignore-this: f73602275d4fb682fad38eb5e97456ab ] hunk ./CookieIssues.lhs 48 -

Cookie updates are not performed in any sort of atomic manner. As a result, the simple cookie demo contains a race condition. We get the Cookie value that was including in the Request and use it to create an updated Cookie value in the Response. But remember that the server can be processing many requests in parallel and the browser can make multiple requests in parallel. If the browser, for example, requested 10 images at once, they would all have the same initial cookie value. So, even though they all updated the counter by 1, they all started from the same value and ended with the same value. The count could even go backwards depending on the order Requests are received and Responses are processed.

+

Cookie updates are not performed in any sort of atomic manner. As a result, the simple cookie demo contains a race condition. We get the Cookie value that was included in the Request and use it to create an updated Cookie value in the Response. But remember that the server can be processing many requests in parallel and the browser can make multiple requests in parallel. If the browser, for example, requested 10 images at once, they would all have the same initial cookie value. So, even though they all updated the counter by 1, they all started from the same value and ended with the same value. The count could even go backwards depending on the order Requests are received and Responses are processed.

hunk ./theme.css 9 - + font-size: 12pt; hunk ./theme.css 156 - width: 50em; + font-size: 11pt; + width: 60em; hunk ./theme.css 160 - line-height: 1em; + line-height: 1.2em; hunk ./theme.css 162 - font-weight: bold;