[Users] [Bug 4727] New: socket: consider write size of zero as error

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Sat Jan 6 13:56:25 UTC 2024


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4727

            Bug ID: 4727
           Summary: socket: consider write size of zero as error
           Product: Claws Mail (GTK 2)
           Version: GIT
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
          Assignee: users at lists.claws-mail.org
          Reporter: olaf at aepfle.de

Created attachment 2384
  -->
https://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=2384&action=edit
gtk2-socket-consider-write-size-of-zero-as-error.patch

As a followup to bug#4726, handle a write size of zero for all transmission
paths as error. This matches other parts of the code base, such as
fd_write_all.

Neither the gnutls nor the POSIX documentation mentions a write size of
zero specifically. It is apparently up to each application to decide
what to do with such short write results. So in case of Claws Mail,
consider it an error in all cases.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list