Minimum buffer length for Response.Flush?

  • Thread starter Matthias Straka
  • Start date
M

Matthias Straka

Hi!

I'm working on a website with an IHttpHandler that listens to changes ina
database and sends some text to the client. The client is always connected
to the handler, this way I can use a push method.
Every time a text is to be sent I flush the buffer. The problem is, that
there seems to be a minimum size the buffer has to have before asp.net
really flushes the buffer and sends the data.

As a workaround I insert a few 100 bytes into a <!-- --> section to get
the buffer flushed. Any flush after the first working flush works as
expected. I don't like the comment-section though. Where could the problem
be?

mat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top