remove autopush support and make it a no-op
commit4347980fa66115425fa8b765353c8b1bfe5dec24
authorEric Wong <e@80x24.org>
Thu, 13 Aug 2015 20:43:45 +0000 (13 20:43 +0000)
committerEric Wong <e@80x24.org>
Thu, 13 Aug 2015 20:53:54 +0000 (13 20:53 +0000)
tree43013b5613a4f5590ca7f0f134991863da621d6d
parent45da2860d48f6620b01699e6f08d573436aa6733
remove autopush support and make it a no-op

Maintaining global state in a library like kgio is ugly, and it
is not optimal from a performance standpoint compared to using
MSG_MORE.

TCP_CORK and TCP_NOPUSH require extra syscalls so it still offers
sub-optimal performance compared to MSG_MORE.

Instead, server developers should use MSG_MORE if their OS supports
it (and should add MSG_MORE to their OS if lacking it).
.document
ext/kgio/accept.c
ext/kgio/autopush.c [deleted file]
ext/kgio/kgio.h
ext/kgio/kgio_ext.c
ext/kgio/read.c
ext/kgio/write.c
ext/kgio/writev.c
lib/kgio.rb
test/test_autopush.rb