Skip to content

Fix Bandit HTTP/2 issues#15

Merged
danschultzer merged 3 commits intomainfrom
use-finch
Aug 26, 2023
Merged

Fix Bandit HTTP/2 issues#15
danschultzer merged 3 commits intomainfrom
use-finch

Conversation

@danschultzer
Copy link
Owner

An issue persisted when using the Bandit.HTTP2.Adapter, and any Plug.Conn calls where the process will wait for any messages to have been received. With the Bandit.HTTP2.Adapter the expectation is that the Plug.Conn function calls happens within the same process as where the plug for initially called. This is different from how Plug.Cowboy and Bandit.HTTP1 is handled.

This PR resolves this issue by encapsulating all Plug.Conn calls when Bandit.HTTP.Adapter is used in the conn. @mtrudel has indicated that this might be handled differently post Bandit 1.0.0 release, so this could be removed in the future.

More details on the issues I experienced using TestServer with Bandit and HTTP/2:
mtrudel/bandit#215
mtrudel/bandit#101

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.

1 participant