Chasing an EPROTOTYPE Through Rust, Sendto, and the OSX Kernel With C-Reduce - Tilting at Rabbit Holes

<![endif] Tilting at Rabbit Holes RSS Blog Archives Nov 19 th , 2014 7:35 am A slight diversion from my serialization series. Last week, strcat submitted #18885 pull request, which adds support for using a Vec as a Writer . Over the weekend I submitted #18980 , which allows a &[u8] to be used as a Reader . Overall a pretty simple change. However, when I was running the test suite, I found that the std::io::net::tcp::write_close_ip4() test was occasionally failing: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #[test] fn write_close_ip4 () { let addr = next_test_ip4 (); let mut acceptor = TcpListener :: bind ( addr ). listen (); spawn ( proc () { let _stream = TcpStream :: connect ( addr ); // Close }); let mut stream = acceptor . accept (); let buf = [ 0 ]; loop { match...

Linked on 2014-11-19 21:09:40 | Similar Links