/* * 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). */ static VALUE s_set_autopush(VALUE self, VALUE val) { enabled = RTEST(val); return val; }