search for: internal_scheduled_writ

Displaying 1 result from an estimated 1 matches for "internal_scheduled_writ".

2008 May 20
7
Problems sending large results with backgroundrb
...ce in Core::schedule_write because connections[fileno] is nil. I can''t claim to fully understand the code, but I think there are two problems here. The main issue seems to be that when Core::handle_write_event calls write_and_schedule to schedule the write, it doesn''t clear out internal_scheduled_write[fileno]. It looks like the code is expecting the cancel_write call at the end of write_and_schedule to clear it out, but this doesn''t happen if there is enough queued data to cause the non-blocking write to only partially succeed again. In this case, Core::schedule_write is called again...