• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

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

修订版7abe0b21c046c411c01533045b255aae2b83684a (tree)
时间2012-08-30 16:58:48
作者Hiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Log Message

Merge branch 'ssl_fix_by_CW'

更改概述

差异

--- a/l7vsd/src/tcp_session.cpp
+++ b/l7vsd/src/tcp_session.cpp
@@ -901,14 +901,15 @@ void tcp_session::up_thread_run()
901901 parent_dispatcher.post(boost::bind(&tcp_session::up_thread_client_ssl_socket_clear_socket_handler,this));
902902 boost::mutex::scoped_lock lock(upthread_status_mutex);
903903 while (unlikely(upthread_status == UPTHREAD_LOCK)) {
904- to_time(LOCKTIMEOUT, xt);
905- upthread_status_cond.timed_wait(lock, xt);
906904 tcp_thread_message *msg = up_thread_message_que.pop();
907905 if (msg) { // message is alive.
908906 msg->message(MESSAGE_PROC);
909907 delete msg;
910908 msg = NULL;
911- }
909+ }else{
910+ to_time(LOCKTIMEOUT, xt);
911+ upthread_status_cond.timed_wait(lock, xt);
912+ }
912913 } // lockmode while loop end.
913914 }
914915