Slight interface simplification

This commit is contained in:
Ian Gulliver
2019-05-04 07:57:55 +00:00
parent c1b0a1dcce
commit 95e9eb0c51
3 changed files with 7 additions and 12 deletions

View File

@@ -31,9 +31,9 @@ bool FastCGIConn::Write(const std::vector<iovec>& vecs) {
return writev(sock_, vecs.data(), vecs.size()) == total_size;
}
bool FastCGIConn::Read() {
int FastCGIConn::Read() {
if (!buf_.Refill()) {
return false;
return sock_;
}
while (true) {
@@ -102,9 +102,5 @@ bool FastCGIConn::Read() {
}
buf_.Consume();
return true;
}
int FastCGIConn::Sock() {
return sock_;
return -1;
}