Skip to content

Bump HTTP compat to "1", drop support for Julia versions below 1.6#183

Merged
etpinard merged 8 commits into
devfrom
http-1
Feb 6, 2023
Merged

Bump HTTP compat to "1", drop support for Julia versions below 1.6#183
etpinard merged 8 commits into
devfrom
http-1

Conversation

@etpinard

Copy link
Copy Markdown
Collaborator

I went ahead and cherry-picked @mind6's commits from #175 unto the current dev branch.


Since we had to disable the Percy tests (ref #177), I would be nice to manually test out this branch before merging it. I'll personally do that starting now.

I'm planning on releasing Dash v1.2.0 early next week.

@github-actions github-actions Bot added CI enhancement New feature or request tests labels Jan 31, 2023
Comment thread src/server.jl Outdated
handler = make_handler(app);
server = Sockets.listen(get_inetaddr(host, port))
task = @async HTTP.serve(handler, host, port; server = server, verbose = true)
task = @async HTTP.serve(handler, host, port; server = server, verbose = debug==true)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I would set verbose=false even in under run_server(app; debug=true)

I'd say logs like

┌ Debug: startread called
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:427
┌ Debug: invoking handler
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:446
┌ Debug: closeread
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:452
┌ Debug: closewrite
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:454
┌ Debug: startread called
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:427
┌ Debug: invoking handler
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:446
┌ Debug: closeread
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:452
┌ Debug: closewrite
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:454
┌ Debug: startread called
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:427
┌ Debug: invoking handler
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:446
┌ Debug: closeread
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:452
┌ Debug: closewrite
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:454
┌ Debug: startread called
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:427
┌ Debug: invoking handler
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:446
┌ Debug: closeread
└ @ HTTP.Servers ~/.julia/packages/HTTP/z8l0i/src/Servers.jl:452

are pretty much useless for Dash.jl users. Thoughts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes I think it's overly verbose for Dash and useless

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your input @mind6 !

for `HTTP.serve`, the verbose HTTP
logs are too much for Dash.jl users
even while debugging.
The `verbose` default is `false`,
so we can drop it.
@etpinard

etpinard commented Feb 6, 2023

Copy link
Copy Markdown
Collaborator Author

Ok. I'm going to go ahead and merge this and try to release Dash.jl v1.2.0 - wish me luck 🤞

@etpinard

Copy link
Copy Markdown
Collaborator Author

Now available as v1.2.1 from Julia's general registry JuliaRegistries/General#77586 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI enhancement New feature or request tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants