|
@@ -133,6 +133,7 @@ public:
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
|
+ bool keepAlive = response->IsKeepAlive();
|
|
|
if (state == SEND_CHUNKED) {
|
|
if (state == SEND_CHUNKED) {
|
|
|
if (buf) {
|
|
if (buf) {
|
|
|
ret = WriteChunked(buf, len);
|
|
ret = WriteChunked(buf, len);
|
|
@@ -159,7 +160,7 @@ public:
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
state = SEND_END;
|
|
state = SEND_END;
|
|
|
- if (!response->IsKeepAlive()) {
|
|
|
|
|
|
|
+ if (!keepAlive) {
|
|
|
close(true);
|
|
close(true);
|
|
|
}
|
|
}
|
|
|
return ret;
|
|
return ret;
|