Do critical sections work in the same
thread or only for different threads?
Critical section work only for different threads.
The receiver puts incomming bytes into a ringbuffer with a greater size
than the buffer where TWSocket.receive puts the data in in the first
place. Then it checks
You can rely on the NTLM message size. You can retrieve the message partly,
write it to the context struct bytewise and when the full message is
received process it and do the next step. That should be better than
Receive().
SZ wrote:
Because the 401 response could be sent before the POST data
Try disabling your thread sleeping (the thread that reads from the
StringList). Does your stringlist get all the the requests? i.e. is
TWSocket receiving them and your code parsing and putting them in the list
correctly?
Dan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL