Questions tagged [http.sys]

http.sys is Microsoft Windows HTTP protocol stack file

The HTTP listener is implemented as a kernel-mode device driver called the HTTP protocol stack (HTTP.sys). IIS uses HTTP.sys, which is part of the networking subsystem of the Windows operating system, as a core component.
When IIS runs in worker process isolation mode, HTTP.sys listens for requests and queues those requests in the appropriate queue. Each request queue corresponds to one application pool. An application pool corresponds to one request queue within HTTP.sys and one or more worker processes.

If a defective application causes the user-mode worker process to terminate unexpectedly, HTTP.sys continues to accept and queue requests, provided that the WWW service is still running, queues are still available, and space remains in the queues.

97 questions
1
vote
1 answer

Why does http.sys (before IIS) return badrequest when requests have certain acceptable accept-encoding header values?

Given a web app (netcoreapp3.0 hosted in IIS) -- any requests with certain values for Accept-Encoding header never gets to the application. http.sys parses and spits out a 400 - BadRequest. i.e., Accept-Encoding: application/gzip,gzip The issue…
1
vote
1 answer

Unable to access SQL table from appl running as service

I have a small test application, made with Delphi 10.3.1 as an Stand Alone HTTPSYS Intraweb service. It has an ADOConnection and a ADOTable and in FormShow of unit1, I open the connection, and the table and reads the first 10 rows and add them to a…
lscshj
  • 63
  • 6
1
vote
1 answer

Problems with ASP.NET Core site using http.sys and Microsoft Edge

I'm having a ton of problems getting an ASP.NET Core 2.1 web application up and running. I need it to run under http.sys (WebListener) on a shared port (80 or 443). I'd also like it to automatically redirect from http (80) to https (443). Of course,…
Andy S
  • 8,641
  • 6
  • 36
  • 40
1
vote
0 answers

Handling IIS low level errors

I am using IIS8 with MVC.NET website built on .net framework 4.5, Here as a part of security fix I am told to have the generic error message for all 403 status codes, This I was able to achieve using httpErrors tags from web.config file using ""…
1
vote
1 answer

When self-hosting ASP.NET Core - does it use http.sys if available?

http.sys is a kernel-mode driver present in Windows that greatly speeds-up the processing and routing of incoming HTTP requests. It was added during the days of Windows NT 4 to give the then-nascant IIS a benchmark boost compared to Apache. For…
Dai
  • 141,631
  • 28
  • 261
  • 374
1
vote
2 answers

Client certificate expiration validation with HTTP.sys SSL binding

I've setup a custom SSL binding via netsh http add sslcert. This binding has the clientcertnegotiation parameter enabled, which causes the HTTP.sys subsystem to issue a client certificate request during the SSL handshake phase. All good till here,…
Marcel N.
  • 13,726
  • 5
  • 47
  • 72
1
vote
0 answers

WCF Self-Hosted Windows Service HTTPS Multiple Domains Same IP:Port

So I want to have multiple WCF Self-Hosted Windows services listen on 443 over HTTPS, different IP addresses. My base URL is something like: red.contoso.com:443/api blue.contoso.com:443/api However, when I try to register red.contoso.com:443/api…
Ayo I
  • 7,722
  • 5
  • 30
  • 40
1
vote
1 answer

How to Forcefully Redirect HTTP 400 Error in Windows Server HTTP.SYS or IIS levels

I want to know How to Forcefully Redirect the Error Page for HTTP 400 Bad Request Error in Windows Server HTTP.SYS or IIS levels ,As per my knowledge IIS supporting greater than 400 only,, Is there any Core level way is there for HTTP 400. Bad…
msgopalkrish
  • 58
  • 2
  • 10
1
vote
1 answer

How can I debug buffering with HTTP.sys?

I am running Windows 8.1 and I have an integration test suite that leverages HostableWebCore to spin up isolated ASP.NET web server processes. For performance reasons, I am launching 8 of these at a time and once they are started up I send a very…
Micah Zoltu
  • 6,764
  • 5
  • 44
  • 72
1
vote
0 answers

Does Http.sys stack maintains separate threadpool?

Off late I have been trying to understand internal of IIS request processing. I came across nice blog on ASP.Net Thread Usage in IIS 7.0 and 6.0. (http://blogs.msdn.com/b/tmarq/archive/2007/07/21/asp-net-thread-usage-on-iis-7-0-and-6-0.aspx). I…
Pankaj Kapare
  • 7,486
  • 5
  • 40
  • 56
1
vote
0 answers

Why doesn't my Web Api proxy receive https requests when set as browser proxy, but can normally?

I have written a http proxy using WebApi. I have it registered on port 4443, and if I enter https://localhost:4443 into a browser, and set a breakpoint in my DelegatingHandler, it will be hit (and I get an SSL warning). If I then set it to be the…
mcintyre321
  • 12,996
  • 8
  • 66
  • 103
1
vote
2 answers

Round #2: HttpListener not receiving outside requests

Same situation as this question, HttpListener not receiving remote requests, even with the firewall down and all prefixes registered, namely: the HttpListener is only receiving requests from the same machine the application is running on a Windows…
0
votes
0 answers

How to debug high latency for clients for my REST API hosted on IIS

I have a OData REST API application running on IIS, using http.sys as the web server. I notice for around 5-10% of the requests my clients are noticing high latency (> 300 ms), but when I look at server side application logs, I see I processed the…
hpatel
  • 35
  • 6
0
votes
0 answers

Diagnosing intermittent 404 through a firewall, VersionInvalid, "Request may not be compliant with HTTP/1.1. "

I have software running on a machine that is getting intermittent 404 responses when calling a Rest API. The IIS logs do not show the 404 being returned, however the HTTPERR log file does, so I understand this to be a problem with HTTP.SYS before it…
Mark
  • 43
  • 5
0
votes
0 answers

HTTPS site on IIS returns 401, HTTP works

Would appreciate help to figure out why HTTPS bindings on IIS are returning a 401 status code while HTTP bindings for the same site work. The following screenshot shows what happens when you browse to the HTTPS site: The following screenshot shows…
Sandy
  • 1,284
  • 2
  • 14
  • 32