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

Receive cannot have more than one websocket dataset at a time #189

Open
1 task
ManApart opened this issue Mar 27, 2020 · 0 comments
Open
1 task

Receive cannot have more than one websocket dataset at a time #189

ManApart opened this issue Mar 27, 2020 · 0 comments
Labels
service Involves a service application
Milestone

Comments

@ManApart
Copy link
Contributor

Description

Even when given different paths in the Accept struct, Receive cannot have multiple websocket definitions at once.

AC

  • Receive should be able to handle many websocket connections at the same time

Error/Reproduce

Error:

 12:07:05.200 [error] Failed to start Ranch listener Accept.Websocket.Router.HTTP in :ranch_tcp:listen([cacerts: :..., key: :..., cert: :..., port: 6790]) for reason :eaddrinuse (address already in use)
12:07:05.200 [warn] Elixir.Receive.SocketManager: Stopping : {:shutdown, {:failed_to_start_child, {:ranch_listener_sup, Accept.Websocket.Router.HTTP}, {:shutdown, {:failed_to_start_child, :ranch_acceptors_sup, {:listen_error, Accept.Websocket.Router.HTTP, :eaddrinuse}

Definitions / Store State:

[
  %Accept{
    connection: %Accept.Websocket{
      hibernate: false,
      idle_timeout: 1440000,
      path: "/small-payload-id",
      port: 6790,
      version: 1
    },
    dataset_id: "small-payload-push-datasetid",
    destination: "small-payload-receive",
    id: "small-payload-id",
    subset_id: "small-payload-subset",
    version: 1
  },
  %Accept{
    connection: %Accept.Websocket{
      hibernate: false,
      idle_timeout: 1440000,
      path: "/receive/ws",
      port: 6790,
      version: 1
    },
    dataset_id: "thicc-bois-generated-50x1-datasetid",
    destination: "thicc-bois-generated-50x1-receive",
    id: "thicc-bois-generated-50x1",
    subset_id: "thicc-bois-generated-50x1-subset",
    version: 1
  }
]
@jdenen jdenen added this to the v1.0.0 milestone Mar 27, 2020
@jdenen jdenen added the service Involves a service application label Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service Involves a service application
Projects
None yet
Development

No branches or pull requests

2 participants