fix recursive overflow of read()
This commit is contained in:
		| @@ -59,15 +59,15 @@ impl Clone for Box<NetworkStream + Send> { | |||||||
|  |  | ||||||
| impl Reader for Box<NetworkStream + Send> { | impl Reader for Box<NetworkStream + Send> { | ||||||
|     #[inline] |     #[inline] | ||||||
|     fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> { self.read(buf) } |     fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> { (**self).read(buf) } | ||||||
| } | } | ||||||
|  |  | ||||||
| impl Writer for Box<NetworkStream + Send> { | impl Writer for Box<NetworkStream + Send> { | ||||||
|     #[inline] |     #[inline] | ||||||
|     fn write(&mut self, msg: &[u8]) -> IoResult<()> { self.write(msg) } |     fn write(&mut self, msg: &[u8]) -> IoResult<()> { (**self).write(msg) } | ||||||
|  |  | ||||||
|     #[inline] |     #[inline] | ||||||
|     fn flush(&mut self) -> IoResult<()> { self.flush() } |     fn flush(&mut self) -> IoResult<()> { (**self).flush() } | ||||||
| } | } | ||||||
|  |  | ||||||
| /// A `NetworkListener` for `HttpStream`s. | /// A `NetworkListener` for `HttpStream`s. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user