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 8492031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:36:07+00:00 2026-06-10T22:36:07+00:00

I am using iisnode to run my node.js app. However, after about an hour,

  • 0

I am using iisnode to run my node.js app. However, after about an hour, the node.exe process stops running (I need it running since I have a setInterval() method that pulls data from the database every few seconds). Any advice?

Also, if I set up my server with process.env.PORT, how do I connect to it using socket.io on the client-side? I understand that I have to use

io.configure(function () { 
    io.set("transports", ["xhr-polling"]); // no websockets
    io.set("polling duration", 10); 
    io.set("log level", 1); // no debug msg
});
  • 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-06-10T22:36:09+00:00Added an answer on June 10, 2026 at 10:36 pm

    This is a correct configuration for socket.io when the application is hosted in IIS using iisnode. On the client side, you connect to the server using the regular HTTP address of the endpoint exposed by IIS. Note that in order for socket.io to work out of the box, you need to host your node.js application as an IIS WebSite rather than a virtual directory within a web site: your app should be addressable with http://foobar.com/ rather than http://foobar.com/myapp/.

    When you say the node.exe process stops running do you mean it is terminated and disappears or hangs? IIS will terminate worker processes (including any child processes they spawned, which is node.exe in this case) after a period of inactivity (when no HTTP requests arrive that target this server). The duration of that time period is configurable in the Application Pool settings.

    If you rely on logic in your application that requires code to be run at intervals, IIS itself does not provide the best hosting model, as process lifetime is tied closely to HTTP messaging. You really need either a durable server (e.g. Windows Service, check out http://nssm.cc/), or some form of a web cron.

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

Sidebar

Related Questions

I'm creating an application using Expressjs running on node under IISNode (i.e on windows).
Background: Nodejs app using expressjs. Hosted on IIS using IISNode Nodejs app is in
I know how to debug http applications using node-inspector and iisnode. But can I
Using mercurial, I've run into an odd problem where a line from one committer
using a binary search tree I need to add to a vector all int
using System; f.involk() failed since it needs a string parameter, how to correct the
using SQL server 2005+ for over a year now, I've been running a query
Using PHP I am running str_replace many times in a row to switch one
Using Qt Creator, I have set a QWidget's background property to black. However, some
I'm using the latest Windows Azure SDK for Node.js (August 2012) from Web Platform

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.