diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -8369,7 +8369,17 @@ sys_read (int fd, char * buffer, unsigned int count) | |||
| 8369 | 8369 | ||
| 8370 | case STATUS_READ_READY: | 8370 | case STATUS_READ_READY: |
| 8371 | case STATUS_READ_IN_PROGRESS: | 8371 | case STATUS_READ_IN_PROGRESS: |
| 8372 | DebPrint (("sys_read called when read is in progress\n")); | 8372 | #if 0 |
| 8373 | /* This happens all the time during GnuTLS handshake | ||
| 8374 | with the remote, evidently because GnuTLS waits for | ||
| 8375 | the read to complete by retrying the read operation | ||
| 8376 | upon EAGAIN. So I'm disabling the DebPrint to avoid | ||
| 8377 | wasting cycles on something that is not a real | ||
| 8378 | problem. Enable if you need to debug something that | ||
| 8379 | bumps into this. */ | ||
| 8380 | DebPrint (("sys_read called when read is in progress %d\n", | ||
| 8381 | current_status)); | ||
| 8382 | #endif | ||
| 8373 | errno = EWOULDBLOCK; | 8383 | errno = EWOULDBLOCK; |
| 8374 | return -1; | 8384 | return -1; |
| 8375 | 8385 | ||