microsoftarchive / http2-katana

HTTP 2.0 with Katana
133 stars 34 forks source link

Https+Http11. Server accepts only each second connection #28

Closed sgrebnov closed 11 years ago

sgrebnov commented 11 years ago

Repro:

  1. Update to the latest DevBranch codebase
  2. Run Tests\Http2.Owin.Server.WebApi.Tests\Http2.Owin.Server.WebApi.Tests (use https://)
  3. Use vanilla browser (FF) or Fiddler to do perform simple GET requests Expected: each request is handled and correct response is showed Observe: only each second request is processed (see image below) connectionissuescreen

As per quick look _server.AcceptSocket(monitor) in the following code is really triggered only for each second request

using (var monitor = new ALPNExtensionMonitor()) { incomingClient = _server.AcceptSocket(monitor); } Http2Logger.LogDebug("New connection accepted");