We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5f5994d commit0e1595eCopy full SHA for 0e1595e
src/lib.rs
@@ -296,7 +296,10 @@ impl<H> Future for Pipe<H> where H: PacketHandler + 'static {
296
297
// if the client connection has closed, close the server connection too
298
match&client_read{
299
-&Err(ref e) =>{self.server_writer.stream.shutdown(Shutdown::Write).unwrap();},
+&Err(ref e) =>{
300
+debug!("Client closed connection: {}", e);
301
+self.server_writer.stream.shutdown(Shutdown::Write).unwrap();
302
+},
303
_ =>{}
304
}
305
@@ -323,7 +326,10 @@ impl<H> Future for Pipe<H> where H: PacketHandler + 'static {
323
326
324
327
// if the server connection has closed, close the client connection too
325
328
match&server_read{
-&Err(ref e) =>{self.client_writer.stream.shutdown(Shutdown::Write).unwrap();},
329
330
+debug!("Server closed connection: {}", e);
331
+self.client_writer.stream.shutdown(Shutdown::Write).unwrap();
332
333
334
335