diff options
| author | Steven Fackler <[email protected]> | 2014-03-17 21:46:05 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2014-03-17 21:46:05 -0700 |
| commit | 46cf3f0791e4639e2bfd990caca209ef9212ebc5 (patch) | |
| tree | 30649fbdfba6a345988d4fe0f0c90a311c037029 | |
| parent | De-~[] ssl (diff) | |
| download | rust-openssl-46cf3f0791e4639e2bfd990caca209ef9212ebc5.tar.xz rust-openssl-46cf3f0791e4639e2bfd990caca209ef9212ebc5.zip | |
SSL session closure should be treated like EOF
| -rw-r--r-- | ssl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ use sync::one::{Once, ONCE_INIT}; use std::cast; use std::libc::{c_int, c_void, c_char}; use std::ptr; -use std::io::{IoResult, IoError, OtherIoError, Stream, Reader, Writer}; +use std::io::{IoResult, IoError, OtherIoError, EndOfFile, Stream, Reader, Writer}; use std::unstable::mutex::NativeMutex; use std::vec_ng::Vec; @@ -518,7 +518,7 @@ impl<S: Stream> Reader for SslStream<S> { Ok(len) => Ok(len as uint), Err(SslSessionClosed) => Err(IoError { - kind: OtherIoError, + kind: EndOfFile, desc: "SSL session closed", detail: None }), |