Draft
Conversation
Contributor
Author
|
Important work remain to be done:
|
5 tasks
Cohttp_eio substitutes Cohttp_lwt_unix.
Uncaught exceptions are now logged with `Cohttp_eio`'s `~on_error`
callback.
The active switch and the environment are passed using Fiber variables.
Ocsigen_stream: Read loop adapted to Eio
Ocsigen_response: Adapted to Eio.File and use unbuffered Eio.Flow read
Ocsigen_response: Cohttp_eio doesn't expose the internal Response module.
Ocsigen_server: Server no longer listen on IPv6 when started with `` ~ports:[ `All ] ``.
Revproxy: Implement `get_inet_addr` with Eio
Revproxy: HTTPS is not supported out of the box in Cohttp_eio
Async exceptions are now handled with a result type:
`Fiber.fork_promise` returns a `('a, exn) result Promise.t` and no
longer use a callback for exceptions.
Add dependency on magic-mime. It was a transitive dependency through cohttp-lwt-unix.
Command pipe: Fork daemon
Use Eio.Exn.pp instead of Printexc.to_string in log messages.
Eio exceptions are printed in a better way with regard to the margin.
Eio doesn't allow filesystem operations to escape the current directory. This is a safety feature but might break applications. The tests are changed to avoid the symlinks pointing outside of the current directory that Dune creates.
This sets lower bounds for eio and ensure compatibility with a wider range of versions.
This list of dependency is used to generate static.ml, which needs the list to be uptodate to be able to load extensions correctly when run with `ocsigenserver -c conf_file`.
The usual setup has served file in a different location (for example, /var) than where the server is run from (usually the home directory).
Now using Eio type for IP addresses instead of Ipaddr
… immediately on the same port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On top of #267 #268 #266
The first commit are the changes automatically made by this tool: https://github.com/Julow/lwt-to-direct-style with the following options:
The second commit makes all the manual changes required to make the server works. It does many things and I plan to split it up into smaller commits with better messages.
The tests run but I've not tested this in a real application yet. There are no compatible Eliom version yet.