Skip to content

Commit

Permalink
Merge pull request #239 from IBM-Swift/connectionLimit
Browse files Browse the repository at this point in the history
modification in ChannelInactive of HTTPRequestHandler.
  • Loading branch information
Pushkar N Kulkarni authored Apr 26, 2020
2 parents 4d8462d + 6fe04a0 commit 1a62753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KituraNet/HTTP/HTTPRequestHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandle
keepAliveState.decrement()
}

func channelInactive(context: ChannelHandlerContext, httpServer: HTTPServer) {
httpServer.connectionCount.sub(1)
func channelInactive(context: ChannelHandlerContext) {
server.connectionCount.sub(1)
}
}

0 comments on commit 1a62753

Please sign in to comment.