version 1.50, 2004/06/03 12:22:20 |
version 1.51, 2004/07/11 17:48:47 |
|
|
u_int len; |
u_int len; |
|
|
/* |
/* |
* Simulate EOF on interrupt: stop sending new requests and |
* Simulate EOF on interrupt: stop sending new requests and |
* allow outstanding requests to drain gracefully |
* allow outstanding requests to drain gracefully |
*/ |
*/ |
if (interrupted) { |
if (interrupted) { |
|
|
int len; |
int len; |
|
|
/* |
/* |
* Can't use atomicio here because it returns 0 on EOF, |
* Can't use atomicio here because it returns 0 on EOF, |
* thus losing the last block of the file. |
* thus losing the last block of the file. |
* Simulate an EOF on interrupt, allowing ACKs from the |
* Simulate an EOF on interrupt, allowing ACKs from the |
* server to drain. |
* server to drain. |
*/ |
*/ |
if (interrupted) |
if (interrupted) |