meow servers validation
This commit is contained in:
1 parent
6ea7512af8
commit
af12f4ebcf
6 files changed
+202
-103
No files matched your search
@@ -25,7 +25,9 @@ fn healthcheck() -> i32 {
|
||||
return 1;
|
||||
};
|
||||
let _ = s.set_read_timeout(Some(timeout));
|
||||
if s.write_all(b"GET /healthz HTTP/1.0\r\nHost: localhost\r\n\r\n").is_err() {
|
||||
if s.write_all(b"GET /healthz HTTP/1.0\r\nHost: localhost\r\n\r\n")
|
||||
.is_err()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
let mut buf = [0u8; 16];
|
||||
|
||||
Reference in new issue
Block a user