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

WIP: HTTP/3 #96

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

WIP: HTTP/3 #96

wants to merge 6 commits into from

Conversation

puzza007
Copy link
Owner

No description provided.

@puzza007
Copy link
Owner Author

Pending curl/curl#4362

@puzza007
Copy link
Owner Author

puzza007 commented Oct 2, 2019

Waiting on multiplexing support https://github.com/curl/curl/wiki/HTTP3

@puzza007
Copy link
Owner Author

puzza007 commented Apr 7, 2022

Using the latest curl with quiche and following the build instructions here

The following

{ok, _} = application:ensure_all_started(katipo).
Pool = api_server,
{ok, _} = katipo_pool:start(Pool, 1, [{pipelining, multiplex}]).
Url = <<"https://nghttp2.org:4433/">>.
ReqHeaders = [].
Opts = #{ssl_verifyhost => false,
ssl_verifypeer => false, verbose => true, http_version => curl_http_version_3}.
Self = self().
[spawn(fun() -> begin Res = catch katipo:get(Pool, Url, Opts), Self ! Res end end) || _ <- lists:seq(1, 200)].
A = [receive X -> X end || _ <- lists:seq(1, 200)].
io:format("~w~n", [[S || {ok, #{status := S}} <- A]]).

will print

[200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200]

There still seem to be some problems when the above is repeated. Sometimes only a couple of the responses will be 200s with the rest looking like they've timed out (I haven't dug any deeper).

@dch
Copy link

dch commented Feb 27, 2023

hey @puzza007 seeing that the upstream curl fix is merged, is this usable now?

@puzza007
Copy link
Owner Author

Hey @dch! It probably will do, yeah. I just need to rebase on master and test again. I'll try to look at it soon.

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

Successfully merging this pull request may close these issues.

2 participants