aboutsummaryrefslogtreecommitdiff
path: root/tests/nt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nt.c')
-rw-r--r--tests/nt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/nt.c b/tests/nt.c
index d30e447..98a4077 100644
--- a/tests/nt.c
+++ b/tests/nt.c
@@ -1,2 +1,2 @@
-/* This file is part of GNU Pies.
+/* This file is part of GNU Pies testsuite.
Copyright (C) 2019 Sergey Poznyakoff
@@ -274,2 +274,6 @@ netcat (char const *urlstr)
{
+ if (events & POLLIN)
+ netcat_stream_read (srv);
+ if (events & POLLOUT)
+ netcat_stream_write (srv);
if (events & POLLHUP)
@@ -279,6 +283,2 @@ netcat (char const *urlstr)
}
- else if (events & POLLIN)
- netcat_stream_read (srv);
- else if (events & POLLOUT)
- netcat_stream_write (srv);
}

Return to:

Send suggestions and report system problems to the System administrator.