Skip to content

Instantly share code, notes, and snippets.

@ptarjan
Created January 13, 2014 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptarjan/8396459 to your computer and use it in GitHub Desktop.
Save ptarjan/8396459 to your computer and use it in GitHub Desktop.
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