BIND 10 trac805, updated. 5345a3c2ba2daf9329b33984782ad50f72734837 [805] Simplify initialization
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Dec 21 11:49:35 UTC 2011
The branch, trac805 has been updated
via 5345a3c2ba2daf9329b33984782ad50f72734837 (commit)
from d02b99f79bec594fc795936b18954543c87edc67 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5345a3c2ba2daf9329b33984782ad50f72734837
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Tue Dec 6 16:23:07 2011 +0100
[805] Simplify initialization
No need to create an opened socket and close it right away.
-----------------------------------------------------------------------
Summary of changes:
src/lib/asiodns/udp_server.cc | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/asiodns/udp_server.cc b/src/lib/asiodns/udp_server.cc
index 69dcade..a47e699 100644
--- a/src/lib/asiodns/udp_server.cc
+++ b/src/lib/asiodns/udp_server.cc
@@ -83,9 +83,7 @@ struct UDPServer::Data {
// We must use different instantiations for v4 and v6;
// otherwise ASIO will bind to both
udp proto = v6 ? udp::v6() : udp::v4();
- socket_.reset(new udp::socket(io_service, proto));
- // For some strange reason, without this, the assign throws an exception.
- socket_->close();
+ socket_.reset(new udp::socket(io_service));
socket_->assign(proto, fd);
}
More information about the bind10-changes
mailing list