× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Pete,

The CHKSVR command relies on signal processing to "time-out" the connection attempt.

It's possible that Apache either disables signals in it's CGI jobs, or has them handled in a special way (for example, having the submitting job handle the signals for the child job.) This sounds like it would cause the problems you describe, right?

Rewriting CHKSVR with nonblocking sockets (instead of signals) would solve this problem.

-SK



On 1/25/2012 12:14 PM, Pete Helgren wrote:
I have a program in CGIDEV2 that uses the CHKSVR command that Scott
Klement put together a few years ago. There is really nothing special
about the command, it check checks to see if a server is listening on a
certain IP and port. I actually had written an RPG ILE program
originally that did something very similar and it failed the same way
that the CHKSVR program is now failing but ONLY when called from the
CGIDEV2 program running on Apache.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.