• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

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

C++ベースのLightweightなHTTPサーバー


Commit MetaInfo

Revisionca54241524e81a5b05232c64f7d7d8b8cd4ec04e (tree)
Time2013-11-26 00:14:12
AuthorMichio Hirai <smg_ykz@user...>
CommiterMichio Hirai

Log Message

[BugFix] Forgot to add dtor code (where it has to have a statement to do event_.delHandlerRead() ).

Change Summary

Incremental Difference

--- a/http/http_socket_manager.cpp
+++ b/http/http_socket_manager.cpp
@@ -15,6 +15,11 @@ HttpSocketManager::HttpSocketManager(const char_t* address, ushort port_number)
1515 event_.addHandlerRead(*this, &HttpSocketManager::handleAccept, server_socket_);
1616 }
1717
18+HttpSocketManager::~HttpSocketManager()
19+{
20+ event_.delHandlerRead(server_socket_);
21+}
22+
1823 bool HttpSocketManager::handleAccept(cm::SocketServer& server_sock)
1924 {
2025 mt::AutoPtr<cm::SocketIf> socket = server_sock.accept();