Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
92bbc991
Commit
92bbc991
authored
Nov 02, 2017
by
Mark Andrews
Browse files
4805. [bug] TCP4Active and TCP6Active weren't being updated
correctly. [RT #46454]
parent
4359be18
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
92bbc991
4805. [bug] TCP4Active and TCP6Active weren't being updated
correctly. [RT #46454]
4804. [port] win32: access() does not work on directories as
required by POSIX. Supply a alternative in
isc_file_isdirwritable. [RT #46394]
...
...
lib/isc/unix/socket.c
View file @
92bbc991
...
...
@@ -3724,6 +3724,12 @@ internal_accept(isc_task_t *me, isc_event_t *ev) {
*/
dev
->
address
=
NEWCONNSOCK
(
dev
)
->
peer_address
;
if
(
NEWCONNSOCK
(
dev
)
->
active
==
0
)
{
inc_stats
(
manager
->
stats
,
NEWCONNSOCK
(
dev
)
->
statsindex
[
STATID_ACTIVE
]);
NEWCONNSOCK
(
dev
)
->
active
=
1
;
}
LOCK
(
&
manager
->
fdlock
[
lockid
]);
manager
->
fds
[
fd
]
=
NEWCONNSOCK
(
dev
);
manager
->
fdstate
[
fd
]
=
MANAGED
;
...
...
@@ -3749,7 +3755,6 @@ internal_accept(isc_task_t *me, isc_event_t *ev) {
UNLOCK
(
&
manager
->
lock
);
inc_stats
(
manager
->
stats
,
sock
->
statsindex
[
STATID_ACCEPT
]);
inc_stats
(
manager
->
stats
,
sock
->
statsindex
[
STATID_ACTIVE
]);
}
else
{
inc_stats
(
manager
->
stats
,
sock
->
statsindex
[
STATID_ACCEPTFAIL
]);
NEWCONNSOCK
(
dev
)
->
references
--
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment