Substring Error on CommTCP_FD_SET

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
mwilliams
Posts: 2
Joined: Wed Sep 22, 2021 10:03 pm

Substring Error on CommTCP_FD_SET

Post by mwilliams »

We are having a problem where when we try to send a request using http_req we get a substring error in CommTCP_FD_SET. Now after some researching on other forums it sounds like the root cause of this is the jvm and the number of files that it opens. Our classpath alone has close to 200 jars defined in it. So, I was wondering if a fix for us would be to simply increase the fdset field in private_H to something longer so libhttp can handle a greater number of open file descriptors and recrompile the service program (or run the installer again) or is there more to it?

Any input would be appreciated.
Scott Klement
Site Admin
Posts: 671
Joined: Sun Jul 04, 2021 5:12 am

Re: Substring Error on CommTCP_FD_SET

Post by Scott Klement »

This problem is already fixed in the current version of HTTPAPI.
mwilliams
Posts: 2
Joined: Wed Sep 22, 2021 10:03 pm

Re: Substring Error on CommTCP_FD_SET

Post by mwilliams »

ok. Thanks So this fix is in version 1.45? I only ask because I downloaded the zip file before posting the question and I didn't see anything in the change log about it.
Scott Klement
Site Admin
Posts: 671
Joined: Sun Jul 04, 2021 5:12 am

Re: Substring Error on CommTCP_FD_SET

Post by Scott Klement »

Starting in 1.43, HTTPAPI no longer uses CommTCP_FD_SET, it uses poll() instead. (Unless you undefine USE_POLL in CONFIG_H and recompile it -- but, I don't know of any reason to do that.)
Post Reply