build with latest coio

This commit is contained in:
Y. T. Chung
2015-09-30 01:48:51 +08:00
parent f4c33186f9
commit 2dbd7f1295
2 changed files with 8 additions and 2 deletions

View File

@@ -330,7 +330,10 @@ impl TcpRelayLocal {
for s in acceptor.incoming() {
let stream = match s {
Ok(s) => s,
Ok((s, addr)) => {
debug!("Got connection from client {:?}", addr);
s
},
Err(err) => {
error!("Error occurs while accepting: {:?}", err);
continue;

View File

@@ -62,7 +62,10 @@ impl TcpRelayServer {
let method = s.method;
for s in acceptor.incoming() {
let mut stream = match s {
Ok(s) => s,
Ok((s, addr)) => {
debug!("Got connection from {:?}", addr);
s
},
Err(err) => {
error!("Error occurs while accepting: {:?}", err);
continue;