Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
NuGet v4.0.1, bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristn committed Jul 19, 2019
1 parent bc361be commit ff95b25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions LoadBalancer/LoadBalancer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,29 +214,29 @@ static HttpResponse RequestHandler(HttpRequest req)

if (String.IsNullOrEmpty(hostKey))
{
_Logging.Log(LoggingModule.Severity.Warn, "RequestHandler no host header supplied for " + req.SourceIp + ":" + req.SourceIp + " " + req.Method + " " + req.RawUrlWithoutQuery);
_Logging.Log(LoggingModule.Severity.Warn, "RequestHandler no host header supplied for " + req.SourceIp + ":" + req.SourcePort + " " + req.Method + " " + req.RawUrlWithoutQuery);
resp = new HttpResponse(req, 400, null, "application/json", Encoding.UTF8.GetBytes("No host header supplied"));
return resp;
}

if (!_Hosts.SelectNodeForHost(hostKey, out currHost, out currNode))
{
_Logging.Log(LoggingModule.Severity.Warn, "RequestHandler host or node not found for " + req.SourceIp + ":" + req.SourceIp + " " + req.Method + " " + req.RawUrlWithoutQuery);
_Logging.Log(LoggingModule.Severity.Warn, "RequestHandler host or node not found for " + req.SourceIp + ":" + req.SourcePort + " " + req.Method + " " + req.RawUrlWithoutQuery);
resp = new HttpResponse(req, 400, null, "application/json", Encoding.UTF8.GetBytes("Host or node not found"));
return resp;
}
else
{
if (currHost == null || currHost == default(Host))
{
_Logging.Log(LoggingModule.Severity.Warn, "RequestHandler host not found for " + req.SourceIp + ":" + req.SourceIp + " " + req.Method + " " + req.RawUrlWithoutQuery);
_Logging.Log(LoggingModule.Severity.Warn, "RequestHandler host not found for " + req.SourceIp + ":" + req.SourcePort + " " + req.Method + " " + req.RawUrlWithoutQuery);
resp = new HttpResponse(req, 400, null, "application/json", Encoding.UTF8.GetBytes("Host not found"));
return resp;
}

if (currNode == null || currNode == default(Node))
{
_Logging.Log(LoggingModule.Severity.Warn, "RequestHandler node not found for " + req.SourceIp + ":" + req.SourceIp + " " + req.Method + " " + req.RawUrlWithoutQuery);
_Logging.Log(LoggingModule.Severity.Warn, "RequestHandler node not found for " + req.SourceIp + ":" + req.SourcePort + " " + req.Method + " " + req.RawUrlWithoutQuery);
resp = new HttpResponse(req, 400, null, "application/json", Encoding.UTF8.GetBytes("No node found for host"));
return resp;
}
Expand All @@ -248,7 +248,7 @@ static HttpResponse RequestHandler(HttpRequest req)

#region Process-Connection

if (currHost.HandlingMode == HandlingMode.Redirect)
if (currHost.HandlingMode == HandlingMode.Proxy)
{
#region Redirect

Expand Down Expand Up @@ -303,7 +303,7 @@ static HttpResponse RequestHandler(HttpRequest req)

#endregion
}
else if (currHost.HandlingMode == HandlingMode.Proxy)
else if (currHost.HandlingMode == HandlingMode.Redirect)
{
#region Proxy

Expand Down
4 changes: 2 additions & 2 deletions LoadBalancer/LoadBalancer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>4.0.0</Version>
<Version>4.0.1</Version>
<Authors>Joel Christner</Authors>
<Company>Joel Christner</Company>
<Product>uscale Loadbalancer</Product>
Expand All @@ -14,7 +14,7 @@
<RepositoryUrl>https://github.com/jchristn/uscale</RepositoryUrl>
<RepositoryType>Github</RepositoryType>
<PackageTags>loadbalancer rest http https load balancer scale scalability high availability</PackageTags>
<PackageReleaseNotes>Refactor, retarget to .NET Core and .NET Framework</PackageReleaseNotes>
<PackageReleaseNotes>Bugfixes</PackageReleaseNotes>
<PackageId>uscale</PackageId>
<PackageLicenseUrl>https://github.com/jchristn/uscale/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageIconUrl>https://raw.githubusercontent.com/jchristn/uscale/master/assets/mu.ico</PackageIconUrl>
Expand Down

0 comments on commit ff95b25

Please sign in to comment.