Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
The send_output method which writes to the buffer triggers a write attempt. So that should not be a problem.
I see. Then I guess it works, although personally I think it's a bit obscure to rely on the internal write cb blocker. Anyway, I've applied your patch. Thanks.
Its what I usually do. So i guess it would be better to do a set_write_callback(0) after write if !sizeof(out_buffer) and to reinstall the callback when more data is available?