Last post Jul 03, 2018 07:55 AM by PatriceSc
Jul 03, 2018 07:16 AM|whisky|LINK
There is an handler that receives 2 requests simultaneously and each request comes with different values in the querystring.
One qs contains the word 'abracada' and the other qs contains 'cada'. The handler returns the value of the QS.
The handler has thread.sleep that sleeps for a few secs. It is random -example one request can be delayed for 2 secs and the other for 3 secs.
Is it possible that this will cause confusion with the threads and the request that came with qs='cada' will return 'abracada' instead of 'cada'?
Jul 03, 2018 07:55 AM|PatriceSc|LINK
No. Most often this kind of behaviour is caused by using static data (causing a single value being shared across all http requests).