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
bb329f73
Commit
bb329f73
authored
7 years ago
by
Sergey Linev
Committed by
Bertrand Bellenot
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
http: small fix in TCivetWeb engine
parent
a9225655
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
net/http/inc/TCivetweb.h
+5
-5
5 additions, 5 deletions
net/http/inc/TCivetweb.h
net/http/src/TCivetweb.cxx
+2
-2
2 additions, 2 deletions
net/http/src/TCivetweb.cxx
with
7 additions
and
7 deletions
net/http/inc/TCivetweb.h
+
5
−
5
View file @
bb329f73
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
class
TCivetweb
:
public
THttpEngine
{
class
TCivetweb
:
public
THttpEngine
{
protected:
protected:
void
*
fCtx
;
///<! civetweb context
void
*
fCtx
;
///<! civetweb context
void
*
fCallbacks
;
///<! call-back table for civetweb webserver
void
*
fCallbacks
;
///<! call-back table for civetweb webserver
TString
fTopName
;
///<! name of top item
TString
fTopName
;
///<! name of top item
Bool_t
fDebug
;
///<! debug mode
Bool_t
fDebug
;
///<! debug mode
Bool_t
fTerminating
;
///<! server doing shutdown and not react on requests
Bool_t
fTerminating
;
///<! server doing shutdown and not react on requests
virtual
void
Terminate
()
override
{
fTerminating
=
kTRUE
;
}
virtual
void
Terminate
()
override
{
fTerminating
=
kTRUE
;
}
...
@@ -29,7 +29,7 @@ public:
...
@@ -29,7 +29,7 @@ public:
TCivetweb
();
TCivetweb
();
virtual
~
TCivetweb
();
virtual
~
TCivetweb
();
virtual
Bool_t
Create
(
const
char
*
args
);
virtual
Bool_t
Create
(
const
char
*
args
)
override
;
const
char
*
GetTopName
()
const
{
return
fTopName
.
Data
();
}
const
char
*
GetTopName
()
const
{
return
fTopName
.
Data
();
}
...
...
This diff is collapsed.
Click to expand it.
net/http/src/TCivetweb.cxx
+
2
−
2
View file @
bb329f73
...
@@ -353,7 +353,7 @@ ClassImp(TCivetweb);
...
@@ -353,7 +353,7 @@ ClassImp(TCivetweb);
TCivetweb
::
TCivetweb
()
TCivetweb
::
TCivetweb
()
:
THttpEngine
(
"civetweb"
,
"compact embedded http server"
),
fCtx
(
nullptr
),
fCallbacks
(
nullptr
),
fTopName
(),
:
THttpEngine
(
"civetweb"
,
"compact embedded http server"
),
fCtx
(
nullptr
),
fCallbacks
(
nullptr
),
fTopName
(),
fDebug
(
kFALSE
),
f
Shutdown
(
kFALSE
)
fDebug
(
kFALSE
),
f
Terminating
(
kFALSE
)
{
{
}
}
...
@@ -362,7 +362,7 @@ TCivetweb::TCivetweb()
...
@@ -362,7 +362,7 @@ TCivetweb::TCivetweb()
TCivetweb
::~
TCivetweb
()
TCivetweb
::~
TCivetweb
()
{
{
f
Shutdown
=
kTRUE
;
f
Terminating
=
kTRUE
;
if
(
fCtx
)
if
(
fCtx
)
mg_stop
((
struct
mg_context
*
)
fCtx
);
mg_stop
((
struct
mg_context
*
)
fCtx
);
if
(
fCallbacks
)
if
(
fCallbacks
)
...
...
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