Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6825929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:05:19+00:00 2026-05-26T22:05:19+00:00

Is this possible? Can we access the underlying socket, used by http.sys to serve

  • 0

Is this possible? Can we access the underlying socket, used by http.sys to serve a response for a given request. I want to be able to support full duplex communication over the http protocol on port 80.

Is there a way to grab the established socket for the current request, and keep it for full duplex communication?

My usage case are web sockets. The handshake of an web socket is actually a valid http request, and I would like to reuse my web server for upgrading it. Another port might not be opened on the client machine, so port 80 is vital.

Any alternatives are appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:05:20+00:00Added an answer on May 26, 2026 at 10:05 pm

    With http.sys you do not have access to the underlying socket. You can handle http requests and build the responses up out of fragments (from fragment cache, memory or files). If you need to have full control over the socket used (start as a http request, later upgrade it to a websocket socket after the “secret-websocket-handshake” is not supported.

    What you can do is: use a rocket like full duplex system. Clients posts requests using HTTP 1.1 keep alive sockets and when the http.sys server receives those requests you can you can postpone the answer until the server to client triggered data is available or a time-out occurs. This is not as robust as a websocket but performs reasonably well and only adds one or two ms to the server reaction time (at least in my tests). The only problems arise when someone has multiple pages open in a browser to the server and the browser starts to let the pages share a single http request.. For this we kept the maximum polling as low as possible yielding substantially more web traffic.

    The other option was to do the websocket ourselves in “socket-code” and the http requests using the “http.sys-code”. This also works reasonably well but makes the code more complex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this possible? I can't find it anywhere.
Is this possible? In an events system an event can have multiple times. (ie,
Possible Duplicate: Can you animate a height change on a UITableViewCell when selected? This
If this is possible, please provide a sample query or two so I can
I'm not sure this is possible, but in ruby, you can dynamically call a
How can I retrieve the current working directory of cmd.exe? This seems possible. For
Can I use dynamic data type in WF 4.0? And if this is possible
Can this be done? It seems like this should be possible. In general, I
I'm sure this must be possible, but I can't find out how to do
It's quite possible a question like this has been asked before, but I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.