-
Notifications
You must be signed in to change notification settings - Fork 19
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
base: master
Are you sure you want to change the base?
WIP: HTTP/3 #96
Conversation
Pending curl/curl#4362 |
Waiting on multiplexing support https://github.com/curl/curl/wiki/HTTP3 |
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). |
hey @puzza007 seeing that the upstream curl fix is merged, is this usable now? |
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. |
No description provided.