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:

  1. have tell me non-blocking
  2. write low level tcp test client , set break point on acknowledgement ( possible?)
  3. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -