#661 server_event calls ondrain once if writing data from ondrain

Reporter Zash
Owner Zash
Created
Updated
Stars (0)
Tags
  • Status-Fixed
  • Type-Defect
  • Priority-Medium
  • Milestone-0.9
  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

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

    Changes
    • tags Status-Fixed

New comment

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