Created
January 13, 2014 08:16
-
-
Save ptarjan/8396459 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hphp/runtime/server/fastcgi/fastcgi-server.cpp b/hphp/runtime/server/fastcgi/fastcgi-server.cpp | |
index 93bee22..7bd2de4 100644 | |
--- a/hphp/runtime/server/fastcgi/fastcgi-server.cpp | |
+++ b/hphp/runtime/server/fastcgi/fastcgi-server.cpp | |
@@ -118,12 +118,10 @@ void FastCGIConnection::readDataAvailable(size_t len) noexcept { | |
void FastCGIConnection::readEOF() noexcept { | |
shutdownTransport(); | |
- delete this; | |
} | |
void FastCGIConnection::readError(const TTransportException& ex) noexcept { | |
shutdownTransport(); | |
- delete this; | |
} | |
bool FastCGIConnection::hasReadDataAvailable() { | |
@@ -148,6 +146,7 @@ void FastCGIConnection::onSessionError() { | |
void FastCGIConnection::onSessionClose() { | |
shutdownTransport(); | |
+ delete this; | |
} | |
void FastCGIConnection::setMaxConns(int max_conns) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment