Error 31

Started by Jeffrey Ferreira, July 15, 2020, 09:57:31 AM

Previous topic - Next topic

Jeffrey Ferreira

Hello List,

i'm using *plus/web/request;put
call "*plus/web/request;put",err=*next,(URL$),(DATA$),RESPONSE$,RESPONSE_HEADER$,(CONTENT_TYPE$),(CERTIFICATE$),(EXTRA_HEADERS$)

and my program is getting error 31's after running for a while..i see a lot of [tcp] ports opens on hfn channels..
i think *plus/web/request is not closing a file channel, but i see a close in the program...

has anyone else ever had this  issue?

jeff

Mike King

Jeff

Remove the ERR=*NEXT or at least trap the error.  The program may be having an error and that might be leaving a channel open. 

Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com

Mike King

#2
Another thought --- you indicated you got a error 31, that's an out of memory error.  Its possible that *plus/web/request cannot allocate enough memory to hold the response. 

By default PxPlus limits the amount of memory to about 32MB. If the program runs out of memory while receiving the response it will leave the file open.

You may want to tell the system to ignore the memory limits by setting 'IZ'.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com

Jeffrey Ferreira

thank you Mike...that is more than likely the case...i will alter the error trapping