- Roland Smith
- PowerBuilder
- Friday, 9 June 2023 07:39 PM UTC
My app (PB 2019-R3) uses HttpClient to make web service calls. I have AutoReadData = False so I am using ReadData to return the results. The sending of the request is done with PostDataStart/PostData/PostDataEnd.
In general it works great but occasionally when a user's computer goes into hibernation and wakes up or the network 'blips', the app will get a 'General Error' from the next PostDataStart or ReadData.
I suspect it might have to do with Keep-Alive. I could turn it off at the server in the 'HTTP Response Headers' section of IIS Manager. This would theoretically make regular operation slower.
Would it be better to just add in a retry feature - try the function again before reporting an error to the user.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.