diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-31 08:18:12 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-31 08:18:12 +0000 |
| commit | fd67acf2469b6dad5000f77b4f39b3feb0bfc458 (patch) | |
| tree | 14fb4187a8a517976316949b707d5bef651f3d94 /ext | |
| parent | 538b33a984a89d733e6370a1fc3c0fa24ac4f206 (diff) | |
| download | ruby-fd67acf2469b6dad5000f77b4f39b3feb0bfc458.tar.gz ruby-fd67acf2469b6dad5000f77b4f39b3feb0bfc458.tar.xz ruby-fd67acf2469b6dad5000f77b4f39b3feb0bfc458.zip | |
* ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): show openssl error
code in EWOULDBLOCK error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/openssl/ossl_ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 310e0c578..08818ac8a 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -1024,14 +1024,14 @@ ossl_ssl_read_internal(int argc, VALUE *argv, VALUE self, int nonblock) case SSL_ERROR_WANT_WRITE: if (nonblock) { errno = EWOULDBLOCK; - rb_sys_fail(0); + rb_sys_fail("SSL_ERROR_WANT_WRITE"); } rb_io_wait_writable(FPTR_TO_FD(fptr)); continue; case SSL_ERROR_WANT_READ: if (nonblock) { errno = EWOULDBLOCK; - rb_sys_fail(0); + rb_sys_fail("SSL_ERROR_WANT_READ"); } rb_io_wait_readable(FPTR_TO_FD(fptr)); continue; |
