summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_stream_source.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-06-14 15:18:52 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-06-14 15:18:52 +0300
commit7574c64992b98d3dfbc3dd101bd0f7d78bad0823 (patch)
tree3a98c46e88d9023df34be3e6cce4f762d53aad36 /src/nxt_stream_source.c
parent3e2632688f53c4cb08e7ac03c61e71facd038df4 (diff)
downloadunit-7574c64992b98d3dfbc3dd101bd0f7d78bad0823.tar.gz
unit-7574c64992b98d3dfbc3dd101bd0f7d78bad0823.tar.bz2
nxt_event_conn_... functions and structures have been renamed
to nxt_conn_...
Diffstat (limited to '')
-rw-r--r--src/nxt_stream_source.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_stream_source.c b/src/nxt_stream_source.c
index 9b667b99..66ec1640 100644
--- a/src/nxt_stream_source.c
+++ b/src/nxt_stream_source.c
@@ -58,7 +58,7 @@ nxt_stream_source_connect(nxt_task_t *task, nxt_stream_source_t *stream)
stream->conn = c;
c->socket.data = stream;
- nxt_event_conn_work_queue_set(c, us->work_queue);
+ nxt_conn_work_queue_set(c, us->work_queue);
c->remote = us->peer->sockaddr;
c->write_state = &nxt_stream_source_connect_state;
@@ -158,7 +158,7 @@ nxt_stream_source_write_ready(nxt_task_t *task, void *obj, void *data)
nxt_debug(task, "stream source write ready fd:%d", c->socket.fd);
- nxt_event_conn_read(task, c);
+ nxt_conn_read(task, c);
}
@@ -212,7 +212,7 @@ nxt_stream_source_read_ready(nxt_task_t *task, void *obj, void *data)
c->read_state = &nxt_stream_source_response_read_state;
- nxt_event_conn_read(task, c);
+ nxt_conn_read(task, c);
return;
fail:
@@ -425,7 +425,7 @@ nxt_stream_source_closed(nxt_task_t *task, void *obj, void *data)
nxt_debug(task, "stream source closed fd:%d", c->socket.fd);
- nxt_event_conn_close(task, c);
+ nxt_conn_close(task, c);
b = nxt_buf_sync_alloc(stream->upstream->buffers.mem_pool,
NXT_BUF_SYNC_LAST);
@@ -463,7 +463,7 @@ nxt_stream_source_error(nxt_task_t *task, void *obj, void *data)
static void
nxt_stream_source_close(nxt_task_t *task, nxt_stream_source_t *stream)
{
- nxt_event_conn_close(task, stream->conn);
+ nxt_conn_close(task, stream->conn);
stream->error_handler(task, stream);
}