summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libhw/host_net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libhw/host_net.c b/libhw/host_net.c
index db31522..330ce85 100644
--- a/libhw/host_net.c
+++ b/libhw/host_net.c
@@ -175,6 +175,7 @@ static implements_net_stream_conn *hostnet_tcplist_accept(implements_net_stream_
listener->active_conn.vtable = &hostnet_tcp_conn_vtable;
listener->active_conn.fd = ret_connfd;
+ listener->active_conn.read_deadline_ns = 0;
return &listener->active_conn;
}
@@ -273,7 +274,7 @@ struct hostnet_pthread_write_args {
};
static void *hostnet_pthread_write(void *_args) {
- struct hostnet_pthread_read_args *args = _args;
+ struct hostnet_pthread_write_args *args = _args;
size_t done = 0;
while (done < args->count) {
ssize_t r = write(args->connfd, args->buf, args->count);
@@ -366,6 +367,7 @@ void hostnet_udp_conn_init(struct hostnet_udp_conn *self, uint16_t port) {
self->vtable = &hostnet_udp_conn_vtable;
self->fd = fd;
+ self->read_deadline_ns = 0;
}
/* UDP sendto() ***************************************************************/