{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/17854","labels_url":"https://api.github.com/repos/akka/akka/issues/17854/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/17854/comments","events_url":"https://api.github.com/repos/akka/akka/issues/17854/events","html_url":"https://github.com/akka/akka/issues/17854","id":91277058,"number":17854,"title":"akka-http RC4 fails under load with 'Connection reset by peer' (regression)","user":{"login":"mo-gr","id":95577,"avatar_url":"https://avatars.githubusercontent.com/u/95577?v=3","gravatar_id":"","url":"https://api.github.com/users/mo-gr","html_url":"https://github.com/mo-gr","followers_url":"https://api.github.com/users/mo-gr/followers","following_url":"https://api.github.com/users/mo-gr/following{/other_user}","gists_url":"https://api.github.com/users/mo-gr/gists{/gist_id}","starred_url":"https://api.github.com/users/mo-gr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mo-gr/subscriptions","organizations_url":"https://api.github.com/users/mo-gr/orgs","repos_url":"https://api.github.com/users/mo-gr/repos","events_url":"https://api.github.com/users/mo-gr/events{/privacy}","received_events_url":"https://api.github.com/users/mo-gr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/1%20-%20triaged","name":"1 - triaged","color":"5319e7"},{"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":"ededed"},{"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:stream","name":"t:stream","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/akka/akka/milestones/37","html_url":"https://github.com/akka/akka/milestones/http-1.0","labels_url":"https://api.github.com/repos/akka/akka/milestones/37/labels","id":1044204,"number":37,"title":"http-1.0","description":"","creator":{"login":"rkuhn","id":470469,"avatar_url":"https://avatars.githubusercontent.com/u/470469?v=3","gravatar_id":"","url":"https://api.github.com/users/rkuhn","html_url":"https://github.com/rkuhn","followers_url":"https://api.github.com/users/rkuhn/followers","following_url":"https://api.github.com/users/rkuhn/following{/other_user}","gists_url":"https://api.github.com/users/rkuhn/gists{/gist_id}","starred_url":"https://api.github.com/users/rkuhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkuhn/subscriptions","organizations_url":"https://api.github.com/users/rkuhn/orgs","repos_url":"https://api.github.com/users/rkuhn/repos","events_url":"https://api.github.com/users/rkuhn/events{/privacy}","received_events_url":"https://api.github.com/users/rkuhn/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":1,"state":"open","created_at":"2015-03-30T07:54:20Z","updated_at":"2015-07-01T07:53:16Z","due_on":"2015-07-07T22:00:00Z","closed_at":null},"comments":13,"created_at":"2015-06-26T15:18:59Z","updated_at":"2015-07-02T13:12:41Z","closed_at":null,"body":"The following program works like a charm with akka-http RC3\r\n\r\n    object Main extends App {\r\n      implicit val actorSystem: ActorSystem = ActorSystem(\"main-actor-system\")\r\n      implicit val actorFlowMaterializer = ActorFlowMaterializer()\r\n      val bindingFuture = Http(actorSystem).bindAndHandle((r: RequestContext) => r.complete(\"ok\"), \"0.0.0.0\", 8080)\r\n    }\r\n\r\nWhen I hit it with apache bench like like so \r\n\r\n    ab -c 1 -n 1000 http://localhost:8080/\r\n\r\nHowever, when I upgrade to RC4 and change the ActorFlowMaterializer to ActorMaterializer, I get `apr_socket_recv: Connection reset by peer (54)` from apache bench after something between 2 and 100 requests.\r\n\r\nI have no idea, what could be the issue...\r\n\r\nMe environment:\r\n- java version \"1.8.0_45\"\r\n- MacOS 10.10.3\r\n- scala 2.11.6\r\n\r\n\r\nThe output from akka while failing is:\r\n\r\n```\r\n[info] Loading project definition from /Users/mgrauel/Coding/scompositor/project\r\n[info] Set current project to scompositor (in build file:/Users/mgrauel/Coding/scompositor/)\r\n[info] Running foo.Main \r\n[INFO] [06/26/2015 17:09:26.340] [main-actor-system-akka.actor.default-dispatcher-16] [akka://main-actor-system/system/IO-TCP/selectors/$a/3] Message [akka.io.SelectionHandler$ChannelReadable$] from Actor[akka://main-actor-system/deadLetters] to Actor[akka://main-actor-system/system/IO-TCP/selectors/$a/3#-658865784] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.\r\n[INFO] [06/26/2015 17:09:26.483] [main-actor-system-akka.actor.default-dispatcher-14] [akka://main-actor-system/system/IO-TCP/selectors/$a/9] Message [akka.io.SelectionHandler$ChannelReadable$] from Actor[akka://main-actor-system/deadLetters] to Actor[akka://main-actor-system/system/IO-TCP/selectors/$a/9#-237500142] was not delivered. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.\r\n[INFO] [06/26/2015 17:09:26.483] [main-actor-system-akka.actor.default-dispatcher-14] [akka://main-actor-system/system/IO-TCP/selectors/$a/9] Message [akka.io.SelectionHandler$ChannelReadable$] from Actor[akka://main-actor-system/deadLetters] to Actor[akka://main-actor-system/system/IO-TCP/selectors/$a/9#-237500142] was not delivered. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.\r\n[INFO] [06/26/2015 17:12:13.397] [main-actor-system-akka.actor.default-dispatcher-26] [akka://main-actor-system/system/IO-TCP/selectors/$a/11] Message [akka.io.SelectionHandler$ChannelReadable$] from Actor[akka://main-actor-system/deadLetters] to Actor[akka://main-actor-system/system/IO-TCP/selectors/$a/11#-1314876149] was not delivered. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.\r\n[INFO] [06/26/2015 17:12:13.423] [main-actor-system-akka.actor.default-dispatcher-26] [akka://main-actor-system/system/IO-TCP/selectors/$a/12] Message [akka.io.SelectionHandler$ChannelReadable$] from Actor[akka://main-actor-system/deadLetters] to Actor[akka://main-actor-system/system/IO-TCP/selectors/$a/12#588690784] was not delivered. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/118027929","html_url":"https://github.com/akka/akka/issues/17854#issuecomment-118027929","issue_url":"https://api.github.com/repos/akka/akka/issues/17854","id":118027929,"user":{"login":"viktorklang","id":10871,"avatar_url":"https://avatars.githubusercontent.com/u/10871?v=3","gravatar_id":"","url":"https://api.github.com/users/viktorklang","html_url":"https://github.com/viktorklang","followers_url":"https://api.github.com/users/viktorklang/followers","following_url":"https://api.github.com/users/viktorklang/following{/other_user}","gists_url":"https://api.github.com/users/viktorklang/gists{/gist_id}","starred_url":"https://api.github.com/users/viktorklang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viktorklang/subscriptions","organizations_url":"https://api.github.com/users/viktorklang/orgs","repos_url":"https://api.github.com/users/viktorklang/repos","events_url":"https://api.github.com/users/viktorklang/events{/privacy}","received_events_url":"https://api.github.com/users/viktorklang/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T13:12:41Z","updated_at":"2015-07-02T13:12:41Z","body":"@jrudolph So, for my understanding, am I correct in my interpretation that TCP does not buffer the FIN and sends it out-of-band even if there are pending acks?"}}