175 |
* a close will be detected on next iteration. |
* a close will be detected on next iteration. |
176 |
* A return of -1 wont (shouldn't) happen, since it didn't happen above |
* A return of -1 wont (shouldn't) happen, since it didn't happen above |
177 |
*/ |
*/ |
178 |
if (n == 2 && nn == iov[0].iov_len) |
if (n == 2 && nn == iov[0].iov_len) { |
179 |
nn += recv(so->s, iov[1].iov_base, iov[1].iov_len,0); |
int ret; |
180 |
|
ret = recv(so->s, iov[1].iov_base, iov[1].iov_len,0); |
181 |
|
if (ret > 0) |
182 |
|
nn += ret; |
183 |
|
} |
184 |
|
|
185 |
DEBUG_MISC((dfd, " ... read nn = %d bytes\n", nn)); |
DEBUG_MISC((dfd, " ... read nn = %d bytes\n", nn)); |
186 |
#endif |
#endif |