| 43 | const char kHTTPHeader[] = "HTTP"; |
| 44 | |
| 45 | Status CheckInBlockingMode(const Socket* sock) { |
| 46 | bool is_nonblocking; |
| 47 | RETURN_NOT_OK(sock->IsNonBlocking(&is_nonblocking)); |
| 48 | if (is_nonblocking) { |
| 49 | static const char* const kErrMsg = "socket is not in blocking mode"; |
| 50 | LOG(DFATAL) << kErrMsg; |
| 51 | return Status::IllegalState(kErrMsg); |
| 52 | } |
| 53 | return Status::OK(); |
| 54 | } |
| 55 | |
| 56 | Status SendFramedMessageBlocking(Socket* sock, const MessageLite& header, const MessageLite& msg, |
| 57 | const MonoTime& deadline) { |
no test coverage detected