c# - Is HttpResponse.Write a blocking function -
i'm working on asynchronous http handler , trying figure out if httpresponse.write
function blocks until receives ack client.
the msdn documentation doesn't say; however, know msdn documentation isapi writeclient() function (a similar mechanism) mentions synchronous version block while attempting send data client.
i thought of 3 possible ways determine answer:
- have tell me non-blocking
- write low level tcp test client , set break point on acknowledgement ( possible?)
- use reflection inspect inner workings of
httpresponse.write
method ( possible?)
its not blocking, can use buffer , send them together.
try set httpresponse.buffer=false;
direct write client.
you can use httpresponse.flush();
force send have client.
about httpresponse.buffer property on msdn
and maybe intresting you: web app blocked while processing web app on sharing same session
Comments
Post a Comment