bugWeeChat - Bugs: bug #37432, xfer plugin doesn't follow recv...

 
 

bug #37432: xfer plugin doesn't follow recv manpage recommendation when checking errno

Submitted by:  None
Submitted on:  Sun 23 Sep 2012 09:00:40 PM UTC  
 
Category: xfer pluginSeverity: 3 - Normal
Item Group: otherStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 0.3.8
IRC nick: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 23 Sep 2012 09:00:40 PM UTC, original submission:

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Updated the item)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 29 Sep 2012 09:24:23 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Mon 24 Sep 2012 07:57:28 PM UTCflashcodeStatusNone=>Fixed
      Assigned toNone=>flashcode
      Release2.1-dev=>0.3.8

    Back to the top


    Powered by Savane 3.1-cleanup1