projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix net engine client read server write bug
[fio.git]
/
engines
/
net.c
diff --git
a/engines/net.c
b/engines/net.c
index 3401039aa3480a0642ca86d50cf1002b94763ada..6748a3e2b65a1185c76260d085c64d99bc11e1b9 100644
(file)
--- a/
engines/net.c
+++ b/
engines/net.c
@@
-496,8
+496,9
@@
static int fio_netio_accept(struct thread_data *td, struct fio_file *f)
static int fio_netio_open_file(struct thread_data *td, struct fio_file *f)
{
int ret;
static int fio_netio_open_file(struct thread_data *td, struct fio_file *f)
{
int ret;
+ struct netio_options *o = td->eo;
- if (
td_read(td)
)
+ if (
o->listen
)
ret = fio_netio_accept(td, f);
else
ret = fio_netio_connect(td, f);
ret = fio_netio_accept(td, f);
else
ret = fio_netio_connect(td, f);