Skip to content

Conversation

@JanHolger
Copy link
Member

This implements an own http server from ground up and abstracts the http server logic from the framework logic so http server implementations are interchangeable. By default the new SimpleHTTPSocketServer will be used but currently there is also a JettyHTTPSocketServer that can be used optionally if something doesn't yet work with the simple implementation. This should removed or moved to a seperate repository so jetty can be removed from the dependencies. The websocket logic is also reimplemented with our own websocket handling instead of the hacky jetty implementation that was previously used. Unfortunately jetty doesn't fully conform to the Java EE standard so it doesn't allow upgrading the connection by yourself and therefore websockets are only working with the simple implementation. I tried several things to hijack the jetty connection but wasn't successful.

…ver implementation and finished the custom http implementation. Added a JettyHTTPSocketServer as a backup option, but it doesn't support websockets.
x7airworker
x7airworker previously approved these changes Dec 5, 2021
Copy link
Member

@x7airworker x7airworker left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@JulianFun123
Copy link
Member

Is multipart form data already implemented?

@JanHolger
Copy link
Member Author

Is multipart form data already implemented?

No, it's not yet implemented for the new server. Jetty is still usable in case you are worried about breaking changes.

…it and there are reported issues with older versions
…t implementation for until the own implementation is fully stable.
@JanHolger JanHolger marked this pull request as ready for review December 7, 2021 16:05
@JanHolger
Copy link
Member Author

I've changed it back to using jetty as the default until the own implementation is stable enough to be used for any production case. I've also upgraded to the current jetty version. The upgrade was blocked by the hacky websocket implementation before that has now been removed.

@JanHolger
Copy link
Member Author

this also closes #11

@JanHolger JanHolger merged commit 593457c into dev Dec 7, 2021
@JanHolger JanHolger deleted the feature/own-http-server branch December 7, 2021 16:14
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.

4 participants