Skip to content

Refactoring: the event loop should not know about front VS back sockets #257

Closed

Description

@Geal

Right now, the event loop assumes a protocol implementation has a single front socket and a single back socket (except when sending back a default answer). In the case of HTTP/2 (#99), we could have a single front socket and multiple back sockets.

The event loop should not have to store info about which token is a back token, and correspondance between back tokens and front tokens (which are used to index clients). The event loop should only know "this token belongs to this session" and pass it down with the events to the protocol implementation, that will act accordingly. This will make the ProxyClient structure much simpler, and the event loop smaller as well.

With this idea, the HTTP/2 support would be like other implementations, seen from the event loop.

Activity

  1. modified the milestones: needed for the release, , should be in the release on Nov 23, 2017
  2. Geal commented on Mar 16, 2018

    @Geal
    MemberAuthor

    This was fixed in 5d50b5e, PR #340

  3. modified the milestones: should be in the release, on Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions