Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian Schrader
Kea
Commits
354ca192
Commit
354ca192
authored
Feb 24, 2011
by
hanfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[trac388] add check to avoid stop server twice
parent
8f331c78
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
ChangeLog
ChangeLog
+5
-0
src/lib/asiolink/tcp_server.cc
src/lib/asiolink/tcp_server.cc
+4
-0
src/lib/asiolink/udp_server.cc
src/lib/asiolink/udp_server.cc
+3
-0
No files found.
ChangeLog
View file @
354ca192
172. [func] feng
Add stop interface into dns server, so we can stop each running
server individually.With it, user can reconfigure its running server
with different ip address or port.
171. [func] feng, jerry, jinmei, vorner
b10-auth, src/lib/datasrc: in memory data source now works as a
complete data source for authoritative DNS servers and b10-auth
...
...
src/lib/asiolink/tcp_server.cc
View file @
354ca192
...
...
@@ -189,6 +189,10 @@ TCPServer::asyncLookup() {
}
void
TCPServer
::
stop
()
{
//server should not be stopped twice
if
(
stopped_by_hand_
)
return
;
stopped_by_hand_
=
true
;
acceptor_
->
close
();
socket_
->
close
();
...
...
src/lib/asiolink/udp_server.cc
View file @
354ca192
...
...
@@ -281,6 +281,9 @@ UDPServer::asyncLookup() {
/// Stop the UDPServer
void
UDPServer
::
stop
()
{
//server should not be stopped twice
if
(
data_
->
stopped_by_hand_
)
return
;
data_
->
stopped_by_hand_
=
true
;
data_
->
socket_
->
close
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment