Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
6751829c
Commit
6751829c
authored
6 years ago
by
Sergey Linev
Committed by
Philippe Canal
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
webgui: let configure special thread for created http server
parent
a64427ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gui/webdisplay/src/TWebWindowsManager.cxx
+22
-0
22 additions, 0 deletions
gui/webdisplay/src/TWebWindowsManager.cxx
with
22 additions
and
0 deletions
gui/webdisplay/src/TWebWindowsManager.cxx
+
22
−
0
View file @
6751829c
...
...
@@ -95,6 +95,24 @@ ROOT::Experimental::TWebWindowsManager::~TWebWindowsManager()
/// In that case only connection from localhost will be available:
///
/// WebGui.HttpLoopback: yes
///
/// Or one could specify hostname which should be used for binding of server socket
///
/// WebGui.HttpBind: hostname | ipaddress
///
/// To use secured protocol, following parameter should be specified
///
/// WebGui.UseHttps: yes
/// WebGui.ServerCert: sertificate_filename.pem
///
/// One also can configure usage of special thread of processing of http server requests
///
/// WebGui.ServerThrd: yes
///
/// If required, one could change websocket timeouts (default is 10000 ms)
///
/// WebGui.HttpWStmout: 10000
bool
ROOT
::
Experimental
::
TWebWindowsManager
::
CreateHttpServer
(
bool
with_http
)
{
...
...
@@ -109,6 +127,7 @@ bool ROOT::Experimental::TWebWindowsManager::CreateHttpServer(bool with_http)
int
http_max
=
gEnv
->
GetValue
(
"WebGui.HttpPortMax"
,
9800
);
int
http_wstmout
=
gEnv
->
GetValue
(
"WebGui.HttpWStmout"
,
10000
);
const
char
*
http_loopback
=
gEnv
->
GetValue
(
"WebGui.HttpLoopback"
,
"no"
);
const
char
*
serv_thrd
=
gEnv
->
GetValue
(
"WebGui.ServerThrd"
,
"no"
);
const
char
*
http_bind
=
gEnv
->
GetValue
(
"WebGui.HttpBind"
,
""
);
const
char
*
http_ssl
=
gEnv
->
GetValue
(
"WebGui.UseHttps"
,
"no"
);
const
char
*
ssl_cert
=
gEnv
->
GetValue
(
"WebGui.ServerCert"
,
"rootserver.pem"
);
...
...
@@ -122,6 +141,9 @@ bool ROOT::Experimental::TWebWindowsManager::CreateHttpServer(bool with_http)
return
false
;
}
if
(
serv_thrd
&&
strstr
(
serv_thrd
,
"yes"
))
fServer
->
CreateServerThread
();
if
(
gApplication
)
gApplication
->
Connect
(
"Terminate(Int_t)"
,
"THttpServer"
,
fServer
.
get
(),
"SetTerminate()"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment