store intercept to set_proxy on requests

This commit is contained in:
Johann Tuffe
2017-12-18 17:53:17 +08:00
parent 8b1bb0b53e
commit 07f89984c4
4 changed files with 15 additions and 3 deletions

View File

@@ -52,7 +52,8 @@ pub fn spawn(txns: Vec<Txn>) -> Server {
let mut n = 0;
while n < expected.len() {
match socket.read(&mut buf[n..]) {
Ok(0) | Err(_) => break,
Ok(0) => break,
Err(e) => panic!(e),
Ok(nread) => n += nread,
}
}