[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: COMMTCP_FD error... length or start position error..



If you are doing an open in your program then somewhere you should be doing a close. When you do the open, you get the descriptor and you use that desriptor (often called fd) to do the work - such as reading or writing. When you are done, you execute a close.

Now, a few years ago, someone reported something similar and there was a change to a procedure in HTTPAPI to close the files on an error. That seemed to be the fix for that issue. 

The question can be answered better if you shared the program/process and maybe we can spot if it is something you are doing or if it is in HTTPAPI. My guess is that you are running some process continuously versus running a single job on demand? Is that so? It isn't a fix for not closing but ending the job will close the open descriptors and then your program will work everytime. 

Just for reference, last time I messed with this, I set a single job that used HTTPAPI to download the yahoo.com page to a file in the IFS and ran it 10,000 times without a descriptor problem. At that time, I believe the person who reported the problem was running the hundreds of thousands before they had an issue. But he couldn't track it down and point to specific reason for leaving behind open descriptors.

To answer the other question about how to see open descriptors, last time we looked at this, I think we failed to find the API or command that would show us open desriptors in a job. But another search would be in order to see if we can find this API or command. It would be very useful to know if HTTPAPI or something else had a bunch of descriptors open.

________________________________________
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Gerald Magnuson [gmagnuson@xxxxxxxxxxxxx]
Sent: Wednesday, June 05, 2013 4:24 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: COMMTCP_FD error... length or start position error..

Maybe to clairify my question....

Is there a procedure to "close open descriptors"???





-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Wednesday, June 05, 2013 3:23 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: COMMTCP_FD error... length or start position error..

https://www.google.com/search?q=COMMTCP_FD&oq=COMMTCP_FD

What else are you doing in the process running HTTPAPI?

It seems likely that someplace IFS files are being opened but not closed.

HTH,
Charles


On Wed, Jun 5, 2013 at 3:52 PM, Gerald Magnuson <gmagnuson@xxxxxxxxxxxxx>wrote:

>    I am on version 1.24...
>
>    I am getting this error very randomly, and cannot re-create...
>
>    Is there a "procedure"   COMMTCP_FD?   Can procedure names be longer
>    than 10?
>
>    Argh....
>
>    I don't know how to figure out where the problem is...
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
>
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------