[PATCH] Unix: remove errno logging when send() returned zero.

Jianjun Zheng codeeply at gmail.com
Tue Jun 10 12:02:26 UTC 2014


AFAIK, it happens when sends zero bytes.


2014-06-10 19:36 GMT+08:00 Maxim Dounin <mdounin at mdounin.ru>:

> Hello!
>
> On Tue, Jun 10, 2014 at 12:54:12AM +0800, Jianjun Zheng wrote:
>
> > When send() returned zero, the errno won't be set.
> > So, it's meaningless here.
>
> This should never ever happen, and if it happens - logging errno
> make sense, as nobody knows why it happened in the first place.
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140610/889cd473/attachment.html>


More information about the nginx-devel mailing list