--On Wednesday, June 21, 2006 3:36 PM -0700 David Schwartz
<[EMAIL PROTECTED]> wrote:
The same problem occurs with one thread. Consider the following code,
assume blocking sockets:
1) do some stuff
2) do a huge write, don't check for short writes since our socket is
blocking
That code is broken. Fix it. You must _always_ check for short writes. Not
doing so is buggy code. Nothing in POSIX, SUSvn, or any other standard
requires that write blocks until everything is written. And on many
operating systems, it won't.
--
Carson
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]