Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP.listen verbose = true logs incorrect port when server is provided #610

Closed
citkane opened this issue Oct 29, 2020 · 0 comments
Closed

Comments

@citkane
Copy link

citkane commented Oct 29, 2020

Julia 0.5.2
HTTP.jl 0.8.19
MbedTLS.jl 1.0.2

Given:

using Sockets, HTTP
server = Sockets.listen(getaddrinfo("localhost"), 8083)
HTTP.listen(; server = server, verbose = true) do io end

It yields:

[ Info: Listening on: 127.0.0.1:8081

The server will be listening, correctly, on port 8083, but verbose = true incorrectly logs port 8081

@quinnj quinnj closed this as completed in a5680d8 Oct 30, 2020
quinnj added a commit that referenced this issue Oct 30, 2020
If server is provided, log correct host/port; fixes #610
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant