/* * call-seq: * Kgio.autopush = true * Kgio.autopush = false * * Enables or disables autopush for sockets created with kgio_accept * and kgio_tryaccept methods. Autopush relies on TCP_CORK/TCP_NOPUSH * being enabled on the listen socket. * * Only available on systems with TCP_CORK (Linux) or * TCP_NOPUSH (FreeBSD, and maybe other *BSDs). * * Please do not use this (or kgio at all) in new code. Under Linux, * use MSG_MORE, instead, as it requires fewer syscalls. Users of * other systems are encouraged to add MSG_MORE support to their * favorite OS. */ static VALUE s_set_autopush(VALUE self, VALUE val) { enabled = RTEST(val); return val; }