• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

UltraMonkey-L7 V3(multi-thread implementation)


Commit MetaInfo

Révision97835e59eeadc52251dba4d0aef77c9213af9a40 (tree)
l'heure2012-01-23 18:17:59
AuteurMichiro HIBARI <hibari@user...>
CommiterMichiro HIBARI

Message de Log

Change Summary

Modification

--- a/l7vsd/include/tcp_ssl_socket.h
+++ b/l7vsd/include/tcp_ssl_socket.h
@@ -105,13 +105,6 @@ public:
105105 virtual bool close(boost::system::error_code &error_code) {
106106 boost::mutex::scoped_lock lock(ssl_mutex);
107107 if (my_socket->lowest_layer().is_open()) {
108- my_socket->lowest_layer().shutdown(boost::asio::ip::tcp::socket::shutdown_both, error_code);
109- if (unlikely(error_code)) {
110- boost::format fmt("Thread ID[%d] ssl_socket lowest_layer shutdown fail: %s");
111- fmt % boost::this_thread::get_id() % error_code.message();
112- Logger::putLogInfo(LOG_CAT_L7VSD_SESSION, 999, fmt.str(), __FILE__, __LINE__);
113- }
114-
115108 my_socket->lowest_layer().close(error_code);
116109 if (error_code) {
117110 boost::format fmt("Thread ID[%d] ssl_socket lowest_layer close fail: %s");
--- a/l7vsd/module/protocol/protocol_module_ip.cpp
+++ b/l7vsd/module/protocol/protocol_module_ip.cpp
@@ -2088,7 +2088,7 @@ protocol_module_base::EVENT_TAG protocol_module_ip::handle_realserver_select(
20882088 //reschedule is off
20892089 else {
20902090 //set return status
2091- status = CLIENT_DISCONNECT;
2091+ status = FINALIZE;
20922092 }
20932093 }
20942094 }
@@ -3112,7 +3112,7 @@ protocol_module_base::EVENT_TAG protocol_module_ip::handle_sorryserver_connectio
31123112 session_data_ptr = session_thread_it->second;
31133113
31143114 //set return status
3115- status = CLIENT_DISCONNECT;
3115+ status = FINALIZE;
31163116
31173117 //set last status
31183118 session_data_ptr->last_status = status;
--- a/l7vsd/module/protocol/protocol_module_sessionless.cpp
+++ b/l7vsd/module/protocol/protocol_module_sessionless.cpp
@@ -3868,7 +3868,7 @@ protocol_module_base::EVENT_TAG protocol_module_sessionless::handle_sorryserver_
38683868 }
38693869 /*------DEBUG LOG END------*/
38703870
3871- status = CLIENT_DISCONNECT;
3871+ status = FINALIZE;
38723872 } catch (int e) {
38733873 /*-------- DEBUG LOG --------*/
38743874 if (unlikely(LOG_LV_DEBUG == getloglevel())) {
--- a/l7vsd/module/protocol/protocol_module_sslid.cpp
+++ b/l7vsd/module/protocol/protocol_module_sslid.cpp
@@ -1674,7 +1674,7 @@ protocol_module_base::EVENT_TAG protocol_module_sslid::handle_realserver_select(
16741674 // no reschedule mode
16751675 // set end_flag ON and disconnect the client
16761676 threaddata->end_flag = END_FLAG_ON;
1677- status = CLIENT_DISCONNECT;
1677+ status = FINALIZE;
16781678 /*-------- DEBUG LOG --------*/
16791679 if (unlikely(LOG_LV_DEBUG == getloglevel())) {
16801680 boost::format formatter("function : protocol_module_base::EVENT_TAG "
@@ -1749,7 +1749,7 @@ protocol_module_base::EVENT_TAG protocol_module_sslid::handle_realserver_select(
17491749 // no reschedule mode
17501750 // set end_flag ON and disconnect the client
17511751 threaddata->end_flag = END_FLAG_ON;
1752- status = CLIENT_DISCONNECT;
1752+ status = FINALIZE;
17531753 /*-------- DEBUG LOG --------*/
17541754 if (unlikely(LOG_LV_DEBUG == getloglevel())) {
17551755 boost::format formatter("function : protocol_module_base::EVENT_TAG "
@@ -2340,7 +2340,7 @@ protocol_module_base::EVENT_TAG protocol_module_sslid::handle_sorryserver_connec
23402340
23412341 // set end_flag ON
23422342 threaddata->end_flag = END_FLAG_ON;
2343- status = CLIENT_DISCONNECT;
2343+ status = FINALIZE;
23442344
23452345 /*-------- DEBUG LOG --------*/
23462346 if (unlikely(LOG_LV_DEBUG == getloglevel())) {