Jump to content


Photo

"connection error, communication failure" TimeOut

timeout

  • Please log in to reply
2 replies to this topic

#1 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 11 December 2017 - 09:29 PM

In code I build a large PDF file full of images that takes about 70 seconds.

 

During the build process uniGUI shows "connection error, communication failure" and retry's many times (about 7 off memory) till finally the file is built and displayed with connection reestablished.

 

How do we keep the connection live during this build ?

 

UniServerModule.SessionTimeout:= 600000; // 600secs (10mins) // Not Reached.

 

procedure TUniMainModule.UniGUIMainModuleSessionTimeout(ASession: TObject; var ExtendTimeOut: Integer); // Not Called
begin
  // 600 (10mins)
  UniApplication.Destroy;
end;
 
Is there a UniSession.Connection.TimeOut setting -or- a UniSession.KeepAlive function ?
 
 
 

  • 0

Andy


#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3885 posts

Posted 12 December 2017 - 04:33 AM

Hi,

 

Increase value of the UniServerModule -> AjaxTimeout parameter.


  • 0

#3 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 12 December 2017 - 05:50 AM

Thanks


  • 0

Andy






Also tagged with one or more of these keywords: timeout

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users