Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to terminate the UI thread(As we all know, in RAP application, the UI thread will be created after user login successfully, when refresh the browser, a new UI thread will be created, this will cause DOS due to high usage of CPU)
How to terminate the UI thread [message #1760631] Sat, 29 April 2017 08:00 Go to next message
zhao qiwen is currently offline zhao qiwenFriend
Messages: 8
Registered: March 2013
Junior Member
Hi all,

As we all know, in RAP application, the UI Thread will be created after user login successfully, this is Daemon Thread.

But a new UI Thread will be created when user refresh the browser.

If the hacker send many time requests, it will create many UI Threads and will cause DOS due to high usage of CPU and memory.

Thanks



Re: How to terminate the UI thread [message #1760652 is a reply to message #1760631] Sun, 30 April 2017 09:58 Go to previous messageGo to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 221
Registered: February 2011
Senior Member
There are many ways to terminate the UIThread:
Expire the HTTP session.
Remove the UISession from the HTTP session.
Let the EntryPoint#createUI method finish
Throw a ThreadDeath exception in the UIThread

I'm sure there's more but that's just off the top of my head
Re: How to terminate the UI thread [message #1760695 is a reply to message #1760652] Tue, 02 May 2017 06:30 Go to previous message
zhao qiwen is currently offline zhao qiwenFriend
Messages: 8
Registered: March 2013
Junior Member
Thanks for your reply.

I have found the reason, when refresh the browser, cid which UI session depends on will change, and cid generate from _generateConnectionId function of client.js. I think I can control the cid on server side to make sure unique value per session.

My Rap version is 2.2.0.

Thanks again.

Previous Topic:Browser.setUrl() creates duplicate requests
Next Topic:Where to post demo code?
Goto Forum:
  


Current Time: Thu Apr 18 23:07:41 GMT 2024

Powered by FUDForum. Page generated in 0.01683 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top