Discussion:
pathsend with timeout -possible ?
(too old to reply)
Henrik Paludan-Mørk
2021-04-06 14:16:20 UTC
Permalink
I have the maintenance responsibility for a largeish program which makes PATHSENDs into an appliation pathway. in case the called program or children thereof, Abend, no answer is coming (ever),
the program just sits there. Pathcom reports it running, and to all outward appearences, nothing is wrong. but nothing happens in a big way.

Now, i know my work is now to read and analyse that program together with the pathsend programming guide; and i will. But i feel i could save a lot of time, if someone could give me a hint? (hopefully OK).

the deal is that I must *time out* on the pathsend call. currently, I obviously do not. it makes a whole interface subsystem unresponsive.

So, dare i hope for a hint in this case?

My best,
Henrik PM
JShepherd
2021-04-06 14:47:49 UTC
Permalink
Post by Henrik Paludan-Mørk
I have the maintenance responsibility for a largeish program which makes
PATHSEN
Post by Henrik Paludan-Mørk
Ds into an appliation pathway. in case the called program or children
thereof, A
Post by Henrik Paludan-Mørk
bend, no answer is coming (ever),
the program just sits there. Pathcom reports it running, and to all outward
appe
Post by Henrik Paludan-Mørk
arences, nothing is wrong. but nothing happens in a big way.
Now, i know my work is now to read and analyse that program together with
the pa
Post by Henrik Paludan-Mørk
thsend programming guide; and i will. But i feel i could save a lot of time,
if
Post by Henrik Paludan-Mørk
someone could give me a hint? (hopefully OK).
the deal is that I must *time out* on the pathsend call. currently, I
obviously
Post by Henrik Paludan-Mørk
do not. it makes a whole interface subsystem unresponsive.
So, dare i hope for a hint in this case?
My best,
Henrik PM
SERVERCLASS_SEND_ has a timeout parameter


INT PROC SERVERCLASS_SEND_ (PATHMON, PATHMONBYTES, SERVERCLASS,
SERVERCLASSBYTES, MESSAGEBUFFER, REQUESTBYTES,
MAXIMUMREPLYBYTES, ACTUALREPLYBYTES, TIMEOUT,
FLAGS, SCSOPERATIONNUMBER, TAG
) EXTENSIBLE, CALLABLE;
Keith Dick
2021-04-06 21:05:06 UTC
Permalink
Post by Henrik Paludan-Mørk
I have the maintenance responsibility for a largeish program which makes PATHSENDs into an appliation pathway. in case the called program or children thereof, Abend, no answer is coming (ever),
the program just sits there. Pathcom reports it running, and to all outward appearences, nothing is wrong. but nothing happens in a big way.
Now, i know my work is now to read and analyse that program together with the pathsend programming guide; and i will. But i feel i could save a lot of time, if someone could give me a hint? (hopefully OK).
the deal is that I must *time out* on the pathsend call. currently, I obviously do not. it makes a whole interface subsystem unresponsive.
So, dare i hope for a hint in this case?
My best,
Henrik PM
It seems to me that if the process in the serverclass that is the target of the Pathsend you are talking about abended, its Pathmon should have started a new copy of the server process. Either the Pathsend to it should have been retried, or an error should have been returned to the Pathsend call that you say has hung. Maybe I'm remembering wrong about how it is supposed to work.

Could it be that the target server process itself has hung? That still would be a problem, but it always is good to understand what actually is happening.

In addition to the timeout argument for the SERVERCLASS_SEND_ call that JShepherd pointed out, the SERVERCLASS object in Pathway has a TIMEOUT attribute. There are some differences in how the timeout in the SERVERCLASS_SEND_ call is handled vs. how the TIMEOUT attribute of the serverclass is handled. I suggest you check both to see which is better for your needs. Of course, if you do not have control over the configuration of the target serverclass, you will have to use the timeout argument to SERVERCLASS_SEND_
Loading...