Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FoKycHuK committed Mar 28, 2015
1 parent 62de771 commit 0839a15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Balancer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static class Program
{
private static readonly Random rand = new Random();
private const int defaultPort = 20000;
private const int timeout = 1500;
private const int timeout = 3000;
private static readonly ILog log = LogManager.GetLogger(typeof(Program));


Expand All @@ -26,6 +26,8 @@ static class Program
{
"127.0.0.1:22722",
"127.0.0.1:22723",
//"127.0.0.1:22724",
//"127.0.0.1:22725",
};

static void Main(string[] args)
Expand Down Expand Up @@ -96,7 +98,6 @@ private static async Task OnContextAsync(HttpListenerContext context)
var encryptedBytes = ms.ToArray();
var encodings = context.Request.Headers.GetValues("Accept-Encoding");
var stream = context.Response.OutputStream;
Console.WriteLine(encodings.Count());
if (encodings != null && encodings.Contains("deflate"))
{
context.Response.AddHeader("Content-Encoding", "deflate");
Expand Down

0 comments on commit 0839a15

Please sign in to comment.