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

port tomcat to CE3 #4216

Merged
merged 2 commits into from Jan 18, 2021
Merged

port tomcat to CE3 #4216

merged 2 commits into from Jan 18, 2021

Conversation

yanns
Copy link
Contributor

@yanns yanns commented Jan 17, 2021

Fix #4092

Copy link
Member

@rossabaker rossabaker left a comment

Choose a reason for hiding this comment

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

Thanks! Consistency question below.

classloader: Option[ClassLoader]
)(implicit protected val F: ConcurrentEffect[F])
classloader: Option[ClassLoader],
private val dispatcher: Dispatcher[F]
Copy link
Member

Choose a reason for hiding this comment

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

Customizing the dispatcher is uninteresting, so several of the backends have started provisioning their own in resource. The JettyBuilder has an example of this, and how it gets wired through the servlet mounts.

You kind of hinted at that already with the create method, but creating a Resource of the builder rather than a resource of the server isn't something we've done elsewhere (that I remember). What do you think of that other pattern?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's indeed a much better approach.
Adopted in 8ca50b7 ;)

@rossabaker rossabaker merged commit 8acd8f5 into http4s:main Jan 18, 2021
rossabaker added a commit to http4s/http4s-servlet that referenced this pull request Apr 3, 2022
rossabaker added a commit to http4s/http4s-servlet that referenced this pull request Apr 4, 2022
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.

Port tomcat to cats-effect-3
2 participants