Skip to content

The closer (service) should not disconnect the TCP/IP stack which can be re-used#28

Merged
dinosaure merged 4 commits into
masterfrom
no-disconnect
Jun 24, 2021
Merged

The closer (service) should not disconnect the TCP/IP stack which can be re-used#28
dinosaure merged 4 commits into
masterfrom
no-disconnect

Conversation

@dinosaure
Copy link
Copy Markdown
Owner

No description provided.

@dinosaure
Copy link
Copy Markdown
Owner Author

Few bugs are discovered on this PR:

  • we should not disconnect the "master" socket at the end of the service, may be we want to re-use it
  • the accept function should not leave the main-loop when it get an error, it should continue to handle incoming connections
  • the Closed error returned by the HTTPS service/accept does not systematically means that the given "master" socket is closed but it can refer to the socket with the peer. In that case, we re-map the error to Write Closed to let the accept loop to continue

@dinosaure dinosaure merged commit 89b6b92 into master Jun 24, 2021
dinosaure added a commit to dinosaure/opam-repository that referenced this pull request Jul 26, 2021
CHANGES:

- Don't use `disconnect` when the server terminates (@dinosaure, dinosaure/paf-le-chien#28)
- The main loop should not leave when it get an error from a client (@dinosaure, dinosaure/paf-le-chien#28)
- `Closed` error from TLS layer does not mean that the service is close,
  wrap such error into a client's `write_error` (@dinosaure, dinosaure/paf-le-chien#28)
- Do the compression of the ring-buffer at any call of `read` (@dinosaure, dinosaure/paf-le-chien#29)
- Refactore the loop under a common implementation (@dinosaure, dinosaure/paf-le-chien#30)
- Add a simple accessor to the peer identity (@dinosaure, dinosaure/paf-le-chien#31)
- Cut package between `paf` & `paf-cohttp` (@dinosaure, @hannesm, dinosaure/paf-le-chien#32)
- Cut package between `paf` & `paf-le` (@dinosaure, @hannesm, dinosaure/paf-le-chien#33)
- Update unikernels with the package layout (@dinosaure, dinosaure/paf-le-chien#34)
@dinosaure dinosaure deleted the no-disconnect branch November 16, 2021 14:07
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