[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RNX0100 in HTTPAPI Version (1.23)
Hi Scott
many thanks for your reply, and I don't want abuse of your patience.
I had read your email about your help.
I use FTPAPI e HTTPAPI with Cgidev2 and I think it maybe the cause of
error.
In the same job (es. INTRANET QTMHHTTP QHTTPSVR ) a user request an
action in Cgi, run Ftpapi + run Http and than I open the file (ex.XML)
with (BNDDIR('QC2LE')).
The great problem is that I can't replicate the error when I want.
Now I solved the error with a workaround, monitoring you srvpgm with
MONMSG.
I can ask to Giovanni if he can help me ... but it's hard for me to
explain yours tool.
Thank you for your patience and to release business's tools.
Best regards
Massimiliano Toninelli
(Italy)
2011/2/4 Scott Klement <[1]sk@xxxxxxxxxxxxxxxx>
Hello,
You say that the error is happening on this line of code:
c eval wkByte = %subst(peFDSet:wkByteNo:1)
and you say that WKBYTENO = 34. That does not make sense, since
peFDSet
is only 28 bytes long. What is the value of peFD?
For wkByteNo to be 34, you'd have to have more than 264 descriptors
open
simultaneously. By default, OS/400 only allows 200 descriptors to
be
open in each job. Granted, it's possible to increase that limit
(which
you must've done?) but... wow, do you really need to have more
than 264
descriptors open at one time?
Or is there a bug somewhere that's not closing a file/pipe/socket?
Thanks!
On 2/2/2011 3:14 AM, Massimiliano Toninelli wrote:
>
> Hi,
> sometime I receive a RNX0100 running the procedure http_url_post
like
> this:
> rc = http_url_post(setupxml.urlsend:
> myPointer:
> dataSize:
> tempstmf:
> HTTP_TIMEOUT:
> HTTP_USERAGENT:
> 'application/x-www-form-urlencoded'
);
> Where:
> setupxml.urlsend = '[1][2]http://sms.mydomain.it/smssend.cgi'
> MYPOINTER = SPP:C38638EC7801B020
> DATASIZE = 159
> TEMPSTMF = '/temp/sms_20110202095009437000.txt'
> The joblog, shows this error: (I translate from Italy to
English):
> Cause . . . . . : There has been one of the following
situations on
> procedure RPG COMMTCP_FD program LIBHTTP/HTTPAPIR4:
> The program goes in error here:
> P
> CommTCP_FD_SET...
>
> P B
> EXPORT
> D
> CommTCP_FD_SET...
>
> D
> PI
> D peFD 10I
> 0
> D peFDSet
> like(fdset)
> D wkByteNo S 5I
> 0
> D wkMask S
> 1A
> D wkByte S
> 1A
> C callp
> CalcBitPos(peFD:wkByteNo:wkMask)
> c eval wkByte =
> %subst(peFDSet:wkByteNo:1)
> c biton wkMask
> wkByte
> c eval %subst(peFDSet:wkByteNo:1) =
> wkByte
> P
> E
> In specific here:
> 4863 c eval wkByte =
> %subst(peFDSet:wkByteNo:1)
> where :
> PEFDSET = ' '< reverse image
> WKBYTENO = 34
> For better understand, I attach my screen shot where you can see
the
> error.
> I hope it help you.
> Best Regards
> Massimiliano Toninelli
>
> References
>
> 1. [3]http://sms.mydomain.it/smssend.cgi
>
>
>
>
>
-------------------------------------------------------------------
----
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> [4]http://www.scottklement.com/mailman/listinfo/ftpapi
>
-------------------------------------------------------------------
----
-------------------------------------------------------------------
----
This is the FTPAPI mailing list. To unsubscribe, please go to:
[5]http://www.scottklement.com/mailman/listinfo/ftpapi
-------------------------------------------------------------------
----
References
1. mailto:sk@xxxxxxxxxxxxxxxx
2. http://sms.mydomain.it/smssend.cgi
3. http://sms.mydomain.it/smssend.cgi
4. http://www.scottklement.com/mailman/listinfo/ftpapi
5. 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
-----------------------------------------------------------------------