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

Re: FW: HTTPAPI question



Hi Mike,

I have never seen this error, however, I've had some thoughts:

The gethostbyname() API is an IBM-supplied routine (it's part of i5/OS.) 
  Assuming you've verified that the input into the API is correct, then 
I'm not sure what to tell you?  If the input is correct, the failure is 
in the operating system, not in HTTPAPI...

Is it possible that it's failing based on when the name server's cache 
is expiring?  IF so, this could really be a DNS error.  Does it help if 
you add the domain name to your host table?  (Just as a test, that is... 
this definitely isn't the "right" way to solve the problem!)

Have you tried using the persistent HTTP functions in HTTPAPI?  They're 
much more efficient if you need to repeatedly post to the same server...

Good luck.


Fasnacht, Mike J (TOG) wrote:
>    Hey all,
>    We have been using the HTTPAPI service program for some time now.
>    Recently, we created a program to do many posts to an outside domain.
>    When we start up a new job and post these entries, the program gets to
>    a specific spot then quits.  When I say "quits" I mean the
>    gethostbyname function returns a null for a host.  What is funny about
>    it is the previous attempt at a gethostbyname for the same host was
>    successful.  In fact the host does not change for all the posts we are
>    attempting.  Once this null is returned each and every subsequent
>    gethostbyname request in that job returns a null.  Which eventually
>    ends up with a host not found message.  The subprocedure we are
>    finding this issue in is http_build_sockaddr.
> 
>    We have been exploring problems with data with no success.
>    Those explorations included getting rid of suspected bad data,
>    repeated attempts with the same data from one successful attempt and
>    many attempts with smaller batches of data.  There is only one
>    consistent piece to it.  The process has never been able to post more
>    that 360 successful times.  There is no consistency to when the
>    gethostbyname fails.  It could fail after 150, 231, 360 attempts.
> 
>    My question is has any one seen this issue?  If so, what solutions did
>    you use?  Should we install a more current version?  Any help would be
>    appreciated.
> 
>    Thanks,
> 
>    Michael J. Fasnacht
>    mjfasnacht@xxxxxxxxxxxxxxxxxxxxx
>    PH. 507 386-5827
>    FAX 507 625-8937
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------