[OpenWrt-Devel] [PATCH uclient] http: wait for socket to be ready before using it

Felix Fietkau nbd at openwrt.org
Thu Jan 15 07:17:50 EST 2015


On 2015-01-15 12:50, Rafał Miłecki wrote:
> This is required as we use USOCK_NONBLOCK.
Are you sure? Theoretically, ustream should already handle it properly.
The first write fails if the socket is not connected yet, so ustream
will buffer the data and send it out again once epoll tells it that the
fd is writable.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list