projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 5.9.0
[yaz-moved-to-github.git]
/
src
/
tcpip.c
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
3ade82b
..
e2e2014
100644
(file)
--- a/
src/tcpip.c
+++ b/
src/tcpip.c
@@
-1328,7
+1328,13
@@
int tcpip_put(COMSTACK h, char *buf, int size)
h->io_pending = CS_WANT_WRITE;
return 1;
}
h->io_pending = CS_WANT_WRITE;
return 1;
}
- return cont_connect(h);
+ if (h->flags & CS_FLAGS_BLOCKING)
+ {
+ h->cerrno = CSYSERR;
+ return -1;
+ }
+ else
+ return cont_connect(h);
}
state->written += res;
TRC(fprintf(stderr, " Wrote %d, written=%d, nbytes=%d\n",
}
state->written += res;
TRC(fprintf(stderr, " Wrote %d, written=%d, nbytes=%d\n",