Skip to content

Commit

Permalink
Clean up code. Remove unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
xplicit committed Apr 12, 2015
1 parent f3ce44d commit 8f7986c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
9 changes: 0 additions & 9 deletions src/HyperFastCgi/Listeners/FastCgiNetworkConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,14 @@ public class FastCgiNetworkConnector : IDisposable
//front-end tells that all data have been sent and asks for shutdown socket one way
bool readShutdown;
bool keepAlive = true;
bool useThreadPool = true;
static int threadName = 0;
private static int nConnect = 0;
#pragma warning disable 414
uint cn = 0;
#pragma warning restore
bool debugEnabled = false;

static Dictionary <uint,FastCgiNetworkConnector> connectors = new Dictionary<uint, FastCgiNetworkConnector> (100);
static object connectorsLock = new object ();


public bool UseThreadPool {
get { return useThreadPool; }
set { useThreadPool = value; }
}

public bool KeepAlive {
get { return keepAlive; }
set { keepAlive = value; }
Expand Down
4 changes: 0 additions & 4 deletions src/HyperFastCgi/Listeners/ManagedFastCgiListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ namespace HyperFastCgi.Listeners
[Config(typeof(ListenerConfig))]
public class ManagedFastCgiListener : IWebListener
{
bool useThreadPool;
GeneralSocket listener;
AsyncCallback accept;

Expand Down Expand Up @@ -52,8 +51,6 @@ public void Configure(object conf, IApplicationServer server,

public int Listen ()
{
this.useThreadPool = true; //useThreadPool;

try {
Logger.Write (LogLevel.Debug,"Listening on port: {0}", config.Port);
Logger.Write (LogLevel.Debug,"Listening on address: {0}", config.Address);
Expand Down Expand Up @@ -113,7 +110,6 @@ public void acceptCallback (IAsyncResult ar)

// Additional code to read data goes here.
FastCgiNetworkConnector connector = new FastCgiNetworkConnector (client, this);
connector.UseThreadPool = useThreadPool;
connector.Disconnected += OnDisconnect;

connector.Receive ();
Expand Down

0 comments on commit 8f7986c

Please sign in to comment.