Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
95c5a169
Commit
95c5a169
authored
Sep 04, 2020
by
Howard Chu
Browse files
ITS#9338 Make sure connection gets rescheduled after write blockage clears up
parent
0b20b92e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/result.c
View file @
95c5a169
...
...
@@ -409,7 +409,6 @@ fail:
ldap_pvt_thread_pool_idle
(
&
connection_pool
);
slap_writewait_play
(
op
);
err
=
slapd_wait_writer
(
conn
->
c_sd
);
conn
->
c_writewaiter
=
0
;
ldap_pvt_thread_pool_unidle
(
&
connection_pool
);
ldap_pvt_thread_mutex_lock
(
&
conn
->
c_write1_mutex
);
/* 0 is timeout, so we close it.
...
...
@@ -420,9 +419,14 @@ fail:
close_reason
=
"writetimeout"
;
else
close_reason
=
"connection lost on writewait"
;
conn
->
c_writewaiter
=
0
;
goto
fail
;
}
/* Resched connection if there are pending ops */
connection_write
(
conn
->
c_sd
);
conn
->
c_writewaiter
=
0
;
if
(
conn
->
c_writers
<
0
)
{
ret
=
0
;
break
;
...
...
Write
Preview
Supports
Markdown
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