Re: NNTPC: Stupid qustion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> DNS and ftping to suburbia.net is giving connection refused...
> 
> Thanks for any help,
> 
> aid

There was a bug in the handling of (ftpd):

#ifdef TCP_NOPUSH
        /*
         * Turn off push flag to keep sender TCP from sending short packets
         * at the boundaries of each write().  Should probably do a SO_SNDBUF
         * to set the send buffer size as well, but that may not be desirable
         * in heavy-load situations.
         */
        on = 1;
        if (setsockopt(s, IPPROTO_TCP, TCP_NOPUSH, (char *)&on, sizeof on) < 0)
                syslog(LOG_WARNING, "setsockopt (TCP_NOPUSH): %m");
#endif
#ifdef SO_SNDBUF
        on = 65536;
        if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&on, sizeof on) < 0)
                syslog(LOG_WARNING, "setsockopt (SO_SNDBUF): %m");
#endif

That caused the kernel to panic for certain ftp transfers (small mtu, I think).
Fixed now :)

> -- 
> Adrian J Bool			| mailto:aid@u-net.net
> 

Cheers,
Julian.


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux