ソースを参照

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.
Tatsuhiro Tsujikawa 12 年 前
コミット
15e1a79914
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/TLSSession.h

+ 2 - 2
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