[Ultramonkey-l7-develop 495] SSLProxy のセッションキャッシュ不具合対応

Back to archive index

Kohei TANUMA tanum****@nttco*****
2009年 8月 21日 (金) 16:24:05 JST


皆様

田沼です。

検証中のところ申し訳ないのですが、SSLProxy の session_cache
設定が無視される不具合がありましたので、修正版を ssl-cache-fix
に登録しています。

大変申し訳ありませんが、今回のリリースに含めていただきたく
SSLProxy 部分について、一通り検証していただけますでしょうか。


commit e6b787eca63e317fe227b2c5dd9462d3a4ced286
Author: Kohei TANUMA <tanum****@users*****>
Date:   Fri Aug 21 11:22:51 2009 +0900

    Fix to ignore 'session_cache' bug.

diff --git a/src/sslproxysession.cpp b/src/sslproxysession.cpp
index 85d354f..4bb93e9 100644
--- a/src/sslproxysession.cpp
+++ b/src/sslproxysession.cpp
@@ -438,11 +438,15 @@ void
sslproxy_session::destroy_session(sslproxy_session* session)
 				}
 			} else if (s_r_event || s_w_event) {
 				// Server event remain.
-				// Set expire time for session cache.
-			
cache_timer.expires_from_now(boost::posix_time::seconds(session_cache_timeout));
-				cache_timer.async_wait(boost::bind(&sslproxy_session::cache_expire,
+				if (session_cache_mode == SSL_SESS_CACHE_OFF) {
+					server_socket.cancel();
+				} else {
+					// Set expire time for session cache.
+				
cache_timer.expires_from_now(boost::posix_time::seconds(session_cache_timeout));
+					cache_timer.async_wait(boost::bind(&sslproxy_session::cache_expire,
 							     this,
 							     boost::asio::placeholders::error));
+				}
 			}
 		}
 	}




Ultramonkey-l7-develop メーリングリストの案内
Back to archive index