Skip to content

Commit

Permalink
Corrected HttpServer init logic to correctly handle unspecified concu…
Browse files Browse the repository at this point in the history
…rrency limit
  • Loading branch information
sweetlandj committed Apr 14, 2016
1 parent 040b788 commit d409ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Platibus/Http/HttpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private HttpServer(IHttpServerConfiguration configuration)
CancellationToken = _cancellationTokenSource.Token
};

if (configuration.ConcurrencyLimit >= 0)
if (configuration.ConcurrencyLimit > 0)
{
acceptBlockOptions.MaxDegreeOfParallelism = configuration.ConcurrencyLimit;
}
Expand Down

0 comments on commit d409ec5

Please sign in to comment.