URL:
  <http://savannah.nongnu.org/bugs/?37432>

                 Summary: xfer plugin doesn't follow recv manpage
recommendation when checking errno
                 Project: WeeChat
            Submitted by: None
            Submitted on: dim. 23 sept. 2012 21:00:40 UTC
                Category: xfer plugin
                Severity: 3 - Normal
              Item Group: other
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.3.9-dev
                IRC nick: 

    _______________________________________________________

Details:

For file plugins/xfer/xfer-dcc.c:

76c76
<                     ((num_read != -1) || (errno != EAGAIN)))
---
>                     ((num_read != -1) || ((errno != EAGAIN) && (errno !=
EWOULDBLOCK))))
128c128
<                     if (errno == EAGAIN)
---
>                     if ((errno == EAGAIN)  || (errno == EWOULDBLOCK))
209c209
<             if ((errno == EAGAIN) || (errno == EINTR))
---
>             if ((errno == EAGAIN) || (errno == EWOULDBLOCK) || (errno ==
EINTR))



I guess it is the reason some xfer transfers fail with an
XFER_ERROR_RECV_BLOCK, even though there should be no reason to fail.






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?37432>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/weechat-dev

Reply via email to