diff options
author | Eric Wong <e@80x24.org> | 2016-12-15 22:53:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-12-15 23:51:08 +0000 |
commit | 333347c3ae54c8d605c673fcd11ff8dcb2ea4c38 (patch) | |
tree | 0663faa01cb9f84457a1b55ab52867ed986dd64c /ext/kgio/writev.c | |
parent | 64dc570f4b99f68b5ed792b36e7e8abc3df74927 (diff) | |
download | kgio-333347c3ae54c8d605c673fcd11ff8dcb2ea4c38.tar.gz |
The regression for existing users was unnacceptable and completely poor judgement on my part. This change brings us back to potentially not-future-compatible code which will impose maintenance burdens on us in the face of future Ruby changes. But TODAY, it is the most performant option for folks who need to use autopush. Revert "resurrect Kgio.autopush support in pure Ruby" and "remove autopush support and make it a no-op" This reverts commits 64dc570f4b99f68b5ed792b36e7e8abc3df74927 and 4347980fa66115425fa8b765353c8b1bfe5dec24.
Diffstat (limited to 'ext/kgio/writev.c')
-rw-r--r-- | ext/kgio/writev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/kgio/writev.c b/ext/kgio/writev.c index 736aa6f..d3ec53e 100644 --- a/ext/kgio/writev.c +++ b/ext/kgio/writev.c @@ -249,6 +249,8 @@ static VALUE my_writev(VALUE io, VALUE ary, int io_wait) } while (writev_check(&a, n, "writev", io_wait) != 0); rb_str_resize(a.vec_buf, 0); + if (TYPE(a.buf) != T_SYMBOL) + kgio_autopush_write(io); return a.buf; } |