Re: tcp write returns 0? | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hua Zhong wrote:
Under what condition would tcp write return 0? Especially since a previous poll() indicates the socket is writable. Could this only happen for socket in NONBLOCK mode?
The socket could become unwritable for various reasons between poll() returning and the send() call. This shouldn't happen very often, but if the system is under memory pressure and needs to page in data between those two calls, that race window can get rather large. You might want to increase your TCP buffer sizes, either per-socket with setsockopt, or system-wide with sysctl.
-- Chris -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Kernel List] [Site Home] [Ethernet Bridging] [Git] [IETF Annouce] [Linux Assembly] [VLAN] [Networking] [Security] [Bugtraq] [Rubini] [Photo] [Singles Social Netowrking] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Virtualization] [Linux Security] [Linux IDE] [Linux RAID] [Linux SCSI] [Linux Wireless] [DDR & Rambus] [Free Dating] [Linux Resources] [Wireless Reading Device]
![]() |
![]() |