[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: SetError() #2: Host name look up failed.
FWIW, I ran two tests tonight on EXAMPLE1 style code.
Created EXAMPLE1 using www.yahoo.com. Figured it was better to DOS yahoo than Scott's server ;)
Created a second program that called that one 1000 times in a loop.
Ran fine. No errors.
Changed the program into a module, took off LR and replaced with return. CALLP for 1000 times in a loop.
Ran fine. No errors.
I thought of some other ways to test (10,000 loop, open a new debug log each time, write to new file every time) but didn't want to spend the whole night trying to recreate something I am not sure is a HTTPAPI problem.
So, from this perspective, a few hundred repeated calls should work fine. Of course, depending on file open and closes, there could be other things that are using up the handles.
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Christen, Duane
> Sent: Monday, January 24, 2011 2:27 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: RE: SetError() #2: Host name look up failed.
>
> Spencer;
>
> I don't know of any way through a menu or command to see how many file
> handles are open. There are several job APIs that may give you that
> information though.
>
> I would look at the parts of your application and determine where file
> handles are being used and determine if they are being closed properly.
>
> Scott also suggested using the newest beta release of HTTPAPI to more
> completely eliminate it as the cause of your issues.
>
> Duane Christen
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of SWofford@xxxxxxxxxx
> Sent: Monday, January 24, 2011 1:59 PM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: SetError() #2: Host name look up failed.
>
>
> I hadn't thought of this before because the problem only manifested
> itself
> when we added the HTTPAPI routines, but this could have been happening
> all
> along and it is now just more visible.
>
> Is there any way to see what file handle resources are used by a job?
>
>
> -----------------------------------------------------------------------
> ---------------------
>
> Original Response below: to original post
>
> Spencer,
>
> The operative information from your description is: " When it tries to
> create an ifs file it gives
> some kind of error indicating no handles are available(i don't remember
> the
> specific error)"
>
> Your job is opening file handles but not closing them. There are a
> limited
> number of handles per job, although it is a rather large number. File
> handles are used in conjunction with sockets, IFS files, STDIO, etc...
>
> HTTPAPI uses sockets and IFS file handles but your problem is most
> likely
> not related to HTTPAPI.
>
> Somewhere in your job file handles are being opened and are either not
> being closed explicitly.
>
> Duane Christen
>
>
>
> Please consider the environment before printing this email ...
>
> *****************************************************
> This e-mail and any files transmitted with it are confidential and
> solely for the use of the individual or entity to which they are
> addressed and intended. If you have received this e-mail in error,
> please notify the sender by return e-mail. If you are not the intended
> recipient, you may not read, copy, retain, print, disclose, or
> distribute this message or its contents to any other individual, for
> such actions may be unlawful.
> WARNING: We take certain precautions to prevent viruses, but we are not
> responsible for loss or damage arising from the use of this e-mail or
> attachments.
> *****************************************************
>
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------