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

RE: Httpapi - socket timeout



That's really what I want to do is loop through the file sending record after record.
It will send approx 50 records then receive this error:

recvresp(): entered                                                                         
recvresp(): tv_sec = 0000000120 tv_usec = 0000000000                                        
SetError() #11: recvresp: recv(): A connection with a remote socket was reset by that socket
http_close(): entered

If I call a program and send only one record at a time everything seems to be ok.

I have attached a copy of the program(looping version).

Thanks!!         

-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx]On
Behalf Of Scott Klement
Sent: Tuesday, July 20, 2004 1:07 AM
To: ftpapi@xxxxxxxxxxxxx
Subject: Re: Httpapi - socket timeout


Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


Hi Rick,

> I'm trying to take a file - build a soap message - then using the HTTP
> Api transmit that to a web service.  It will only send 50 records or so
> then socket drops.  I changed program to process one record at a time
> setting *INLR on it works.  Is there anyway I can configure to
> contiously send without having to seton *INLR.

Why not just call http_url_post() in a loop without ending your program at
all?  Does that cause problems for you?

Setting on *INLR shouldn't have any effect on HTTPAPI. Ending the
activation group would certainly have an effect, but I don't see why
setting on *INLR would matter at all.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------

Attachment: step1.rpgle
Description: step1.rpgle