#661 server_event calls ondrain once if writing data from ondrain

Reporter Zash
Owner Zash
Stars (0)
  • Status-Fixed
  • Priority-Medium
  • Milestone-0.9
  • Type-Defect
  1. Zash on

    What steps will reproduce the problem? 1. Write a thing that sends data in chunks from a listener.ondrain() callback 2. Run it on server_event 3. ??? What is the expected output? Everything being awesome! What do you see instead? ondrain only called once This seems to be because writecallback() doesn't check if the write buffer is still empty after a successful write (and calling ondrain) and then has the event removed.

  2. Zash on

    • owner Zash
    • tags Milestone-0.9 Status-Started
  3. Zash on

    • tags Status-Fixed

New comment

Not published. Used for spam prevention and optional update notifications.