{"action":"closed","issue":{"url":"https://api.github.com/repos/akka/akka/issues/19404","repository_url":"https://api.github.com/repos/akka/akka","labels_url":"https://api.github.com/repos/akka/akka/issues/19404/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/19404/comments","events_url":"https://api.github.com/repos/akka/akka/issues/19404/events","html_url":"https://github.com/akka/akka/issues/19404","id":126108622,"number":19404,"title":"HTTP().bindAndHandle() does not enforce the max connection setting","user":{"login":"fsat","id":1665611,"avatar_url":"https://avatars.githubusercontent.com/u/1665611?v=3","gravatar_id":"","url":"https://api.github.com/users/fsat","html_url":"https://github.com/fsat","followers_url":"https://api.github.com/users/fsat/followers","following_url":"https://api.github.com/users/fsat/following{/other_user}","gists_url":"https://api.github.com/users/fsat/gists{/gist_id}","starred_url":"https://api.github.com/users/fsat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsat/subscriptions","organizations_url":"https://api.github.com/users/fsat/orgs","repos_url":"https://api.github.com/users/fsat/repos","events_url":"https://api.github.com/users/fsat/events{/privacy}","received_events_url":"https://api.github.com/users/fsat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/3%20-%20in%20progress","name":"3 - in progress","color":"eb6420"},{"url":"https://api.github.com/repos/akka/akka/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"CCCCCC"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:core","name":"t:http:core","color":"ededed"},{"url":"https://api.github.com/repos/akka/akka/labels/t:http:server","name":"t:http:server","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"johanandren","id":666915,"avatar_url":"https://avatars.githubusercontent.com/u/666915?v=3","gravatar_id":"","url":"https://api.github.com/users/johanandren","html_url":"https://github.com/johanandren","followers_url":"https://api.github.com/users/johanandren/followers","following_url":"https://api.github.com/users/johanandren/following{/other_user}","gists_url":"https://api.github.com/users/johanandren/gists{/gist_id}","starred_url":"https://api.github.com/users/johanandren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanandren/subscriptions","organizations_url":"https://api.github.com/users/johanandren/orgs","repos_url":"https://api.github.com/users/johanandren/repos","events_url":"https://api.github.com/users/johanandren/events{/privacy}","received_events_url":"https://api.github.com/users/johanandren/received_events","type":"User","site_admin":false},"assignees":[{"login":"johanandren","id":666915,"avatar_url":"https://avatars.githubusercontent.com/u/666915?v=3","gravatar_id":"","url":"https://api.github.com/users/johanandren","html_url":"https://github.com/johanandren","followers_url":"https://api.github.com/users/johanandren/followers","following_url":"https://api.github.com/users/johanandren/following{/other_user}","gists_url":"https://api.github.com/users/johanandren/gists{/gist_id}","starred_url":"https://api.github.com/users/johanandren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanandren/subscriptions","organizations_url":"https://api.github.com/users/johanandren/orgs","repos_url":"https://api.github.com/users/johanandren/repos","events_url":"https://api.github.com/users/johanandren/events{/privacy}","received_events_url":"https://api.github.com/users/johanandren/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/akka/akka/milestones/93","html_url":"https://github.com/akka/akka/milestones/2.4.10","labels_url":"https://api.github.com/repos/akka/akka/milestones/93/labels","id":1917834,"number":93,"title":"2.4.10","description":"","creator":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"open_issues":63,"closed_issues":21,"state":"open","created_at":"2016-08-02T09:56:56Z","updated_at":"2016-08-29T10:27:20Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-01-12T06:29:48Z","updated_at":"2016-08-29T10:27:20Z","closed_at":"2016-08-29T10:27:20Z","body":"It seems HTTP().bindAndHandle() no longer enforces the max connection setting. Consider the following setup:\r\n\r\n```\r\nval customSettings = ServerSettings(actorSystem).copy(maxConnections = 1)\r\nHttp(actorSystem)\r\n  .bindAndHandle(routeToMount, host, port, settings = customSettings)\r\n```\r\n\r\nGiven the setup above, I would expect the max number of HTTP connection that the server would accept will be capped to `1`. However the limit doesn't seem to be enforced, i.e. I can open more than 1 connection.\r\n\r\nPlease find the reproducer attached:\r\n\r\nhttps://github.com/fsat/akka-http-max-connection-test-stuff"}}
{"actor":{"display_login":"johanandren"}}