jmonty77
-
Posts
97 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Posts posted by jmonty77
-
-
Hello, I've realised that this happens when there's httpcommand event in server:
procedure TUniServerModule.UniGUIServerModuleHTTPCommand(
ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo;
var Handled: Boolean);
begin
//
end;The code can be empty. If I remove this event, error 401 is gone.
I tested it with a new project and only putting a timer in mainform. maxrequest=1
-
But maxrequests is actuating in IIS ISAPI, because if I set maxrequest=1 and I start a session, 401 is received in /HandleEvent
-
ISAPI
-
Hello,
When serverlimits.maxrequests is reached, why I get 401 response in browser?
Documentation says "it will keep the incoming requests waiting until the number of pending requests falls below the maximum value"
I expect that /handleevent request would be queued until prior requests are processed.
Thanks in advance
-
Thank you
-
I'm using unigui inside chromium embedded framework in native app, and I want to notify app about the failure.
-
Hello, I want to capture ConnectionFailureRecovery event from javascript (Retrying... message).
is it possible?
Thanks
-
This behaviour is still present in current release. Is there a way to solve or minimize it?
Thanks
-
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)
-
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?
-
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
-
He can launch the application later reloading the page manually, or clicking in "restart application", but If I kill his current session I don't want he can reenter in my system automatically.
But If I disable "restartsessionontimeout", then if I must restart server, I lose all my clients until users manually start new session.
-
Hello,
uniServer has "restartsessionontimeout" option, but from server side I want to kill some sessions with SessionManager.Sessions.PurgeSessionById, and I don't want this sessions restart.
-
Hello, is there any way to capture invalid session and send a custom response to client?
In my server i need to terminate some sessions that must not automatically reload to main page when I kill them, but I want that if I restart server, and invalid session occurs, all clients automatically reload.
Thanks
Jordi
-
Thanks!
But 1534 is equal to 1533. I don't know if I must upgrade in this case. But it will help!
-
Hello, where to find if a new version is released and the change log? Sometimes I find new releases in customer portal, but I don't know if it is really worth having.
-
Hello, I would like to update content of currently visible sweetalert (Swal.update({ ...options })
And implement the "close" function, too.
Thanks in advance!
Jordi
-
uni-1.90.0.1530
-
In carousel, I need to move to a new page by code.
The server side funcion slides without animation. So, I've tried
unimcar.JSInterface.JSCall('setActiveItem',[2, 'slide']);
But it changes to new page without animation effect. Is there a way to animate this action?
Thanks
-
I can only download trial version 1.90.0.1509. Is it ok? Which demo do you propose to learn?
-
I've this configuration. But talking about killing a session manually, it can be done?
What does "SessionManager.Sessions.PurgeSessionById(SessionId)"? I 've not found documentation, but this terminates a session when i try in my development server.
What situation can make that after calling this function, sessionid is still listed in session list forever?
-
In a local network, when I detect a new session with same IP of another one that already exists, i want to close this older one.
I don't know from where came this older sessions, because my customer says that only one browser window is open at a time. And I see in logs that this sessions are not executing code anymore. They are listed, but cannot be freed.
My server is in a local network where clients modify their IP periodically, if it helps.
-
Hello, what is the proper way of closing a session?
I've tried:
SessionManager.Sessions.PurgeSessionById(SessionId)
session.uniapplication.terminate('');
session.Terminate()
All this functions works in my developer server, but I've a production server where some sessions cannot be closed.
After calling this functions, I see that the mainmodule is not destroyed and if I list the sessions, I still can see that session:
for I := 0 to self.SessionManager.Sessions.SessionList.Count - 1 do
self.SessionManager.Sessions.SessionList;....
I'm using an old version of unigui (1.0.0.1410). May be is it solved in current version?
Thank you
Jordi
-
Hello,
I need to send the data inside a loop and instantly, not after exiting HTTPcommand function (mjpeg streaming)
regards
serverlimits.maxrequest
in General
Posted
Thank you! When is it expected to be available a new version? I'm waiting it to renew my subscription.