mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix TCPreply on systems with no writev, if just 1 byte could be sent.
git-svn-id: file:///svn/unbound/trunk@2149 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
96df860673
commit
6070d61076
2 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
15 June 2010: Wouter
|
15 June 2010: Wouter
|
||||||
- tag 1.4.5 created.
|
- tag 1.4.5 created.
|
||||||
- trunk contains 1.4.6 in development.
|
- trunk contains 1.4.6 in development.
|
||||||
|
- Fix TCPreply on systems with no writev, if just 1 byte could be sent.
|
||||||
|
|
||||||
11 June 2010: Wouter
|
11 June 2010: Wouter
|
||||||
- When retry to parent the retrycount is not wiped, so failed
|
- When retry to parent the retrycount is not wiped, so failed
|
||||||
|
|
|
||||||
|
|
@ -923,7 +923,8 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
|
||||||
log_assert(iov[1].iov_len > 0);
|
log_assert(iov[1].iov_len > 0);
|
||||||
r = writev(fd, iov, 2);
|
r = writev(fd, iov, 2);
|
||||||
#else /* HAVE_WRITEV */
|
#else /* HAVE_WRITEV */
|
||||||
r = send(fd, (void*)&len, sizeof(uint16_t), 0);
|
r = send(fd, (void*)(((uint8_t*)&len)+c->tcp_byte_count),
|
||||||
|
sizeof(uint16_t)-c->tcp_byte_count, 0);
|
||||||
#endif /* HAVE_WRITEV */
|
#endif /* HAVE_WRITEV */
|
||||||
if(r == -1) {
|
if(r == -1) {
|
||||||
#ifndef USE_WINSOCK
|
#ifndef USE_WINSOCK
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue