weechat-dev
[Top][All Lists]
Advanced

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

[Weechat-dev] [bug #37432] xfer plugin doesn't follow recv manpage recom


From: anonymous
Subject: [Weechat-dev] [bug #37432] xfer plugin doesn't follow recv manpage recommendation when checking errno
Date: Sun, 23 Sep 2012 21:00:41 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1

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: address@hidden
             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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]