PxPlus User Forum

Main Board => Discussions => Language => Topic started by: Jeffrey Ferreira on July 15, 2020, 09:57:31 AM

Title: Error 31
Post by: Jeffrey Ferreira on July 15, 2020, 09:57:31 AM
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
Title: Re: Error 31
Post by: Mike King on July 15, 2020, 10:26:23 AM
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. 

Title: Re: Error 31
Post by: Mike King on July 15, 2020, 10:31:14 AM
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'.
Title: Re: Error 31
Post by: Jeffrey Ferreira on July 15, 2020, 10:39:29 AM
thank you Mike...that is more than likely the case...i will alter the error trapping