summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_conn_job_sendfile.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-01-30 16:47:50 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-01-30 16:47:50 +0300
commitbb87fa11ca65d1263a32f86d51d1daa89dc11544 (patch)
treed5e74fee091b15da7ecd058341d49dba304c9822 /src/nxt_event_conn_job_sendfile.c
parent952291c93c96c1dc5b63576e0ee034efde998b18 (diff)
downloadunit-bb87fa11ca65d1263a32f86d51d1daa89dc11544.tar.gz
unit-bb87fa11ca65d1263a32f86d51d1daa89dc11544.tar.bz2
nxt_event_timer has been renamed to nxt_timer.
Diffstat (limited to 'src/nxt_event_conn_job_sendfile.c')
-rw-r--r--src/nxt_event_conn_job_sendfile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_event_conn_job_sendfile.c b/src/nxt_event_conn_job_sendfile.c
index e9334016..4a0d1a5c 100644
--- a/src/nxt_event_conn_job_sendfile.c
+++ b/src/nxt_event_conn_job_sendfile.c
@@ -84,8 +84,8 @@ nxt_event_conn_job_sendfile_start(nxt_task_t *task, void *obj, void *data)
c->blocked = 1;
- if (c->write_timer.state != NXT_EVENT_TIMER_DISABLED) {
- c->write_timer.state = NXT_EVENT_TIMER_BLOCKED;
+ if (c->write_timer.state != NXT_TIMER_DISABLED) {
+ c->write_timer.state = NXT_TIMER_BLOCKED;
}
nxt_job_start(task, &jbs->job, nxt_event_conn_job_sendfile_handler);
@@ -210,10 +210,10 @@ nxt_event_conn_job_sendfile_return(nxt_task_t *task, void *obj, void *data)
}
if (sent != 0 && c->write_state->autoreset_timer) {
- nxt_event_timer_disable(&c->write_timer);
+ nxt_timer_disable(&c->write_timer);
- } else if (c->write_timer.state == NXT_EVENT_TIMER_BLOCKED) {
- c->write_timer.state = NXT_EVENT_TIMER_ACTIVE;
+ } else if (c->write_timer.state == NXT_TIMER_BLOCKED) {
+ c->write_timer.state = NXT_TIMER_ACTIVE;
}
if (c->socket.error == 0