Jump to content

invalidsession duplicates after server stoped


jmonty77

Recommended Posts

I've a simple page with a single unitimer.

When I stop server, I get

POST https://localhost/invalidsession.dll/HandleEvent net::ERR_CONNECTION_REFUSED

every few seconds in console. It's ok.

But when I start server again, the page is loaded again for every post that failed. I can see it with a console.log in invalidsession template:

<html>
<body bgcolor="#dfe8f6">
<script>
         console.log('load');
</script>

<p style="text-align:center;color:#0000A0">[###message###]</p>
<p style="text-align:center;color:#A05050"><a href="[###url###]">Restart application</a></p>
</body>
</html>

 

If the server is stopped some minutes, hundred invalidsession are fired after starting it. How to stop it at first invalid session?

 

Thanks!

Jordi

 

Link to comment
Share on other sites

5 hours ago, jmonty77 said:

I've a simple page with a single unitimer.

When I stop server, I get

POST https://localhost/invalidsession.dll/HandleEvent net::ERR_CONNECTION_REFUSED

every few seconds in console. It's ok.

But when I start server again, the page is loaded again for every post that failed. I can see it with a console.log in invalidsession template:

<html>
<body bgcolor="#dfe8f6">
<script>
         console.log('load');
</script>

<p style="text-align:center;color:#0000A0">[###message###]</p>
<p style="text-align:center;color:#A05050"><a href="[###url###]">Restart application</a></p>
</body>
</html>

 

If the server is stopped some minutes, hundred invalidsession are fired after starting it. How to stop it at first invalid session?

 

Thanks!

Jordi

 

Hello

As you have ConnectionFailureRecovery, system will try to send unanswered requests again.

You can set UniServerModule.ConnectionFailureRecovery.Enabled

Link to comment
Share on other sites

Hello, I want to have connectionfailurerecovery enabled. But after loading first invalidsessiontemplate, why the system continues trying to do post?

If the server hangs, and if I have hundreds of clients, after starting it again some time later, it will receive hundred or thousands of queued post.

Is there a way of stopping next requests after loading first invalidsessiontemplate page?

 

 

Link to comment
Share on other sites

1 hour ago, jmonty77 said:

Hello, I want to have connectionfailurerecovery enabled. But after loading first invalidsessiontemplate, why the system continues trying to do post?

If the server hangs, and if I have hundreds of clients, after starting it again some time later, it will receive hundred or thousands of queued post.

Is there a way of stopping next requests after loading first invalidsessiontemplate page?

 

 

Hi

Can you make a test case?

Link to comment
Share on other sites

Hello, create new project and put unilabel and unitimer. In unitimertimer:

procedure TMainForm.UniTimer1Timer(Sender: TObject);
begin
 unilabel1.Caption:='a';
end;


In servermessages.invalidsessionmessagetemplate:

<html>
<body bgcolor="#dfe8f6">
<script>
         console.log('load event');
</script>

<p style="text-align:center;color:#0000A0">[###message###]</p>
<p style="text-align:center;color:#A05050"><a href="[###url###]">Restart application</a></p>
</body>
</html>

 

Stop the server for some seconds to see some POST error messages in javascript console.

Start server again and you will see lot of "load event" messages in javascript console.

I think that "Restart application" page would have to be loaded only once.

(I'm using ISAPI module)

 

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...