× 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 Darryl,

I'm having a hard time nailing down what your scenario looks like. Your subject says "web services", so my first thought was that you were using my IWS example.

But then you reference SERVER3I and SERVER3L. That's a socket programming example, if I recall correctly! Okay, so maybe you're writing your own HTTP server. (No idea why you'd do that, but that's what it sounds like.)

Then you mention Apache calling your program, which is yet a 3rd way of writing a server program.

I understand the symptoms (being called twice, spawning a new job each time) but I don't know under which scenario it's happening...


Darryl Freinkel wrote:
I recently found and tried Scott Klement's examples on how to write a TCP/IP
server program.

The program is working well, however, I have a few issues and questions.
1. Debugging the code, I found the program is called twice. The first
has the instruction I issue in the browser example

http://a4gi501:6999/?rtvcust
<http://a4gi501:6999/?rtvcust&S2K&LSP&%22customer%201234%22>
&S2K&LSP&"customer 1234". It is called again with other values. The question
is, where is the second call coming from? I believe it may be the apache web
server. If it is, I would like to understand why. I thought the call would
go directly to the program that is listening. I am using the SERVER3L and
SERVER3I example.

2. The program is spawning off the requests correctly, however, I
would like the system to re-use the batch job and not end it. I am concerned
that on a busy site, the jobs numbers would be used up in a few days.


Thank you

Darryl Freinkel

Assignment 400 Group, Inc.

Tel: 770.321.8562 ext 111 | Fax 770.321.8562 | 2247 La Salle Dr, Marietta
GA, 30062, USA | PO Box 72556, Marietta, GA 30007-2556




As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.