diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-04-09 01:12:51 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-04-09 01:12:51 +0900 |
| commit | 15e1a799147fdb5fb9471cb9e96c928b6cae31c3 (patch) | |
| tree | b49944f06b075f1cfc4abb3b885638e7d53d948e /src | |
| parent | 83b801a0a50af72f124a6b6ff3e740854d178876 (diff) | |
Update TLSSession::checkDirection() doc
Make it clear that TLS_WANT_READ must be returned if underlying
SSL/TLS lib does not indicate I/O direction. This is because
SocketCore sets wantRead_ = true when TLS_WANT_READ is returned and
otherwise sets wantWrite_ = true. We only want to set wantWrite_ =
true iff we have some pending data to send.
Diffstat (limited to 'src')
| -rw-r--r-- | src/TLSSession.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TLSSession.h b/src/TLSSession.h index ec06a142..42e4e1cb 100644 --- a/src/TLSSession.h +++ b/src/TLSSession.h @@ -79,8 +79,8 @@ public: // Returns TLS_WANT_READ if SSL/TLS session needs more data from // remote endpoint to proceed, or TLS_WANT_WRITE if SSL/TLS session // needs to write more data to proceed. If SSL/TLS session needs - // neither read nor write data at the moment, return value is - // undefined. + // neither read nor write data at the moment, TLS_WANT_READ must be + // returned. virtual int checkDirection() = 0; // Sends |data| with length |len|. This function returns the number |
