--- deliantra/server/socket/lowlevel.C 2007/07/12 19:36:58 1.50 +++ deliantra/server/socket/lowlevel.C 2007/07/28 00:15:03 1.51 @@ -33,11 +33,6 @@ # include #endif -#define HAVE_SIOCOUTQ 1 //TODO configure.ac support -#if HAVE_SIOCOUTQ -# include -#endif - // disconnect a socket after this many seconds without an ack #define SOCKET_TIMEOUT 8. @@ -51,22 +46,12 @@ if (destroyed ()) return; -# if HAVE_SIOCOUTQ - { - int value; - - if (!ioctl (fd, SIOCOUTQ, &value)) - outq = value; - } -# endif - #if HAVE_TCP_INFO // check about once per second, spread evenly over all clients // do this only when player is active if (!((pticks + fd) & 7) && pl && pl->active) { // check time of last ack, and, if too old, kill connection - struct tcp_info tcpi; socklen_t len = sizeof (tcpi); if (!getsockopt (fd, IPPROTO_TCP, TCP_INFO, &tcpi, &len) && len == sizeof (tcpi)) @@ -74,8 +59,8 @@ if (tcpi.tcpi_snd_mss) mss = tcpi.tcpi_snd_mss; - rtt = tcpi.tcpi_rtt; - rttvar = tcpi.tcpi_rttvar; + fprintf (stderr, "uack %d sst %d cwnd %d mss %d pmtu %d\n", + tcpi.tcpi_unacked, tcpi.tcpi_snd_ssthresh, tcpi.tcpi_snd_cwnd, tcpi.tcpi_advmss, tcpi.tcpi_pmtu); if (tcpi.tcpi_last_ack_recv > int (SOCKET_TIMEOUT * 1000)) {