View previous topic :: View next topic |
Author |
Message |
MagnumMan
Joined: 01 Apr 2005 Posts: 8 Location: MA
|
Posted: Tue Apr 12, 2005 3:08 Post subject: Implementing Restart Delay |
|
|
I browsed through the code and it appears that the restart delay really isn't hooked up at all, so I hooked it up:
NWNX2Dlg.cpp:169 insert (after setInterval):
watchdogProcess->setDelay(m_intRestartDelay * 1000);
watchdog.h:35 insert (in the struct):
int delay;
watchdog.h:45 insert (after setInternal):
setDelay(0);
watchdogprocess.cpp:33 insert (in the struct):
int delay;
watchdogprocess.cpp:59 insert (before StartAndInject):
Sleep(pWatchdogThreadData->delay);
I'm not sure what the use of this is really for; perhaps to give Dr. Watson enough time to grab a crash dump before restarting? |
|
Back to top |
|
|
DarkstarsDad
Joined: 17 Jan 2005 Posts: 59 Location: Overland Park, Kansas USA
|
Posted: Tue Apr 12, 2005 5:03 Post subject: reason |
|
|
yes and some people needed a delay to allow the DB to startup and init. _________________ Just because you think you can't. Is the best reason to try it anyway. |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sat Apr 16, 2005 1:00 Post subject: |
|
|
Sometimes the server is restarted to soon and the port (e.g. 5121) is still occupied by the crashed instance. That is what the delay parameter is for.
The executable actually honors the delay, I just seem to have forgotten to update the source files in the zip file. It will be included in the next version, thanks for the info. _________________ Papillon |
|
Back to top |
|
|
|