Menu

#17 bug in setMaxReadBufferThreshold of NonBlockingConnection

open
grro
xLightweb (2)
5
2010-10-18
2010-10-18
Anonymous
No

Gregor,
There is a bug in NonBlockingConnection. when call setMaxReadBufferThreshold, the ioHandler will be suspended, and the read is never
resumed.
xsocket version is 2.8.14, xlightweb version is 2.13.2. And testing case is below:

Discussion

  • Nobody/Anonymous

     
  • grro

    grro - 2010-10-18
    • assigned_to: nobody --> grro
     
  • Stonered Lee

    Stonered Lee - 2010-10-18

    in the same TestXSocket case,
    Another problerm, if setMaxReadBufferThreshold(1024*64), then
    the bytes available of onData's bodyDataSource will expand so fast (up to 30MB), inspite of the small threshold (64K).

    PS, the download speed of the url "http://viewer.tj.cnki.net/CAJViewer%207.0.2.self.exe"
    is about 2MB/s. Is there something wrong with xlightweb in the case of high speed download?

     

Log in to post a comment.

MongoDB Logo MongoDB