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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:16:20+00:00 2026-06-06T05:16:20+00:00

Is there any event that is fired when the idHttpServer disconnects? By disconnect I

  • 0

Is there any event that is fired when the idHttpServer disconnects?

By disconnect I dont mean when a client disconnects, but when the idHTTPServer disconnect for some reason.

I can explain it better: when idHTTPServeris listening to a socket port and, for some unknown reason, the computer disconnects from the network (lets say, for example, that the the network becomes unavailable) the component does not work anymore (it stops listening to the port) and, in that case, I need to reconnect (reopen the port). The idHttpServer.OnDisconnect, according to the help, is only fired when a client disconnects from the server.

  • 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-06T05:16:22+00:00Added an answer on June 6, 2026 at 5:16 am

    I have two suggestions to help you solve your issue.

    First of all, add a timer where once every minute (or interval of your choice), “ask” windows if your port is still listening or not. This must be done outside of Indy, as Indy has no mechanism to do this. If Windows tells you this port is not listening, then record this to a log and restart your server. Check this log periodically to see if your app has ever reported your port to stop listening. This will tell you if it really is disconnecting or not.

    Second of all, you might want to consider a nightly restart of your server socket. For example, at midnight every night, stop and start the server socket to ensure a fresh connection. There might be some variable overflow, for example, if you are constantly incrementing a number and it keeps getting larger and larger, then over time, that number will become too large for your application to hold it. This can happen anywhere between 5 seconds or 5 months of run-time, depending on how fast you increment it.

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

Sidebar

Related Questions

Are there any event that is fired when cell is about to be selected?
Is there an event that is fired, or any way of telling when my
Is there any event in Internet Explorer, that is fired whenever DOM is changed?
is there any javascript library that provides me with a custom event as soon
Is there any event like OnValidate in LINQ where I can add my business
Hy, is there any event-drive/event-based Webframework for Python? I mean something like NitroGen is
Is there any way to make the program sleep until an event occurs, but
Is there any way to attach a listener to FullCalendar that will be fired
Is there any event associated with Install Components Screen? Something like Next button disabled
I was wondering if there are any event handlers if the user clicked the

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.