Skip Menu |

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 130019
Status: new
Priority: 0/
Queue: Net-SSLeay

Owner: Nobody in particular
Requestors: felipe [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: ssl_write_all() interacts poorly with EAGAIN
Date: Tue, 9 Jul 2019 17:39:04 -0400
To: bug-Net-SSLeay [...]
From: Felipe Gasper <felipe [...]>
Download (untitled) / with headers
text/plain 805b
I confirmed recently that if ssl_write_all() is called over and over on a socket and the peer doesn’t read, then ssl_write_all() will block indefinitely. This applies even with a non-blocking socket--and it’s worse because in that case a tight write() loop happens. While ssl_write_all() is documented as a “blocking” function, it seems like this function’s behavior could be a bit more helpful for non-blocking sockets (and blocking sockets with a socket-level timeout set), which by their nature are expected to indicate when the write buffer is full. That said, it may be too risky of a change to apply to the existing function … in which case, would it work to create an ssl_write_all_nb() function that works as I describe? Thank you for your time. -Felipe Gasper Mississauga, Ontario

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to