Skip to content

Commit

Permalink
Merge pull request #1519 from vapor/engine-client-close
Browse files Browse the repository at this point in the history
engine client close
  • Loading branch information
tanner0101 committed Feb 26, 2018
2 parents 9da65ea + e7e0a2d commit d8254ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/Vapor/Engine/EngineClient.swift
Expand Up @@ -114,8 +114,6 @@ public final class EngineClient: Client, Service {
)
req.http.headers[.host] = hostname
return client.send(req.http).flatMap(to: Response.self) { httpRes in
tlsClient.close()

return try self.response(from: httpRes, for: req, maxRedirects: redirects)
}
}
Expand All @@ -136,8 +134,6 @@ public final class EngineClient: Client, Service {
)
req.http.headers[.host] = hostname
return client.send(req.http).flatMap(to: Response.self) { httpRes in
tcpClient.close()

return try self.response(from: httpRes, for: req, maxRedirects: redirects)
}
}
Expand Down

0 comments on commit d8254ba

Please sign in to comment.