"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/knot/server/server.c" between
knot-2.9.1.tar.xz and knot-2.9.2.tar.xz

About: Knot DNS is a high-performance authoritative-only DNS server (supports zone transfers, dynamic updates and DNSSEC).

server.c  (knot-2.9.1.tar.xz):server.c  (knot-2.9.2.tar.xz)
skipping to change at line 260 skipping to change at line 260
if (sock == KNOT_EADDRNOTAVAIL) { if (sock == KNOT_EADDRNOTAVAIL) {
udp_bind_flags |= NET_BIND_NONLOCAL; udp_bind_flags |= NET_BIND_NONLOCAL;
sock = net_bound_socket(SOCK_DGRAM, addr, udp_bind_flags) ; sock = net_bound_socket(SOCK_DGRAM, addr, udp_bind_flags) ;
if (sock >= 0 && warn_bind) { if (sock >= 0 && warn_bind) {
log_warning("address %s UDP bound, but required n onlocal bind", addr_str); log_warning("address %s UDP bound, but required n onlocal bind", addr_str);
warn_bind = false; warn_bind = false;
} }
} }
if (sock < 0) { if (sock < 0) {
log_error("cannot bind address %s (%s)", addr_str, log_error("cannot bind address %s UDP (%s)", addr_str,
knot_strerror(sock)); knot_strerror(sock));
server_deinit_iface(new_if); server_deinit_iface(new_if);
return NULL; return NULL;
} }
if (!enlarge_net_buffers(sock, UDP_MIN_RCVSIZE, UDP_MIN_SNDSIZE) && if (!enlarge_net_buffers(sock, UDP_MIN_RCVSIZE, UDP_MIN_SNDSIZE) &&
warn_bufsize) { warn_bufsize) {
log_warning("failed to set network buffer sizes for UDP") ; log_warning("failed to set network buffer sizes for UDP") ;
warn_bufsize = false; warn_bufsize = false;
} }
skipping to change at line 306 skipping to change at line 306
if (sock == KNOT_EADDRNOTAVAIL) { if (sock == KNOT_EADDRNOTAVAIL) {
tcp_bind_flags |= NET_BIND_NONLOCAL; tcp_bind_flags |= NET_BIND_NONLOCAL;
sock = net_bound_socket(SOCK_STREAM, addr, tcp_bind_flags ); sock = net_bound_socket(SOCK_STREAM, addr, tcp_bind_flags );
if (sock >= 0 && warn_bind) { if (sock >= 0 && warn_bind) {
log_warning("address %s TCP bound, but required n onlocal bind", addr_str); log_warning("address %s TCP bound, but required n onlocal bind", addr_str);
warn_bind = false; warn_bind = false;
} }
} }
if (sock < 0) { if (sock < 0) {
log_error("cannot bind address %s (%s)", addr_str, log_error("cannot bind address %s TCP (%s)", addr_str,
knot_strerror(sock)); knot_strerror(sock));
server_deinit_iface(new_if); server_deinit_iface(new_if);
return NULL; return NULL;
} }
if (!enlarge_net_buffers(sock, TCP_MIN_RCVSIZE, TCP_MIN_SNDSIZE) && if (!enlarge_net_buffers(sock, TCP_MIN_RCVSIZE, TCP_MIN_SNDSIZE) &&
warn_bufsize) { warn_bufsize) {
log_warning("failed to set network buffer sizes for TCP") ; log_warning("failed to set network buffer sizes for TCP") ;
warn_bufsize = false; warn_bufsize = false;
} }
skipping to change at line 461 skipping to change at line 461
} }
} }
/* Free remaining interfaces. */ /* Free remaining interfaces. */
server_deinit_iface_list(server->ifaces); server_deinit_iface_list(server->ifaces);
/* Free threads and event handlers. */ /* Free threads and event handlers. */
worker_pool_destroy(server->workers); worker_pool_destroy(server->workers);
/* Free zone database. */ /* Free zone database. */
knot_zonedb_deep_free(&server->zone_db); knot_zonedb_deep_free(&server->zone_db, true);
/* Free remaining events. */ /* Free remaining events. */
evsched_deinit(&server->sched); evsched_deinit(&server->sched);
/* Close persistent timers DB. */ /* Close persistent timers DB. */
knot_lmdb_deinit(&server->timerdb); knot_lmdb_deinit(&server->timerdb);
/* Close kasp_db. */ /* Close kasp_db. */
knot_lmdb_deinit(&server->kaspdb); knot_lmdb_deinit(&server->kaspdb);
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)