Skip to content

Commit 57e03db

Browse files
authored
Merge pull request #415 from takluyver/unix-socket-proxy-clients
Ensure proxying to Unix sockets constructs separate HTTP clients
2 parents da7e5f6 + 47654db commit 57e03db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_server_proxy/handlers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ async def proxy(self, host, port, proxied_path):
339339
# Port points to a Unix domain socket
340340
self.log.debug("Making client for Unix socket %r", self.unix_socket)
341341
assert host == "localhost", "Unix sockets only possible on localhost"
342-
client = SimpleAsyncHTTPClient(resolver=UnixResolver(self.unix_socket))
342+
client = SimpleAsyncHTTPClient(
343+
force_instance=True, resolver=UnixResolver(self.unix_socket)
344+
)
343345
else:
344346
client = httpclient.AsyncHTTPClient()
345347

0 commit comments

Comments
 (0)