Skip to content

Commit 5147dc7

Browse files
committed
EPX-6: event_expire_timers SEGV fix.
The core dump is always preceded by an error: on_reconnect_timeout: state borrow: RefCell already borrowed ev->active is not the thing to check before ngx_event_add_timer or ngx_event_del_timer
1 parent 24c897d commit 5147dc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nginx_module/src/unix_socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ impl Drop for State {
273273
}
274274
},
275275
Self::Disconnected { event, .. } => unsafe {
276-
if event.active() != 0 {
276+
if event.timer_set() != 0 {
277277
ngx_event_del_timer(event.as_mut());
278278
}
279279
},

0 commit comments

Comments
 (0)