We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert!
unix::Client::new
1 parent 8abfc60 commit c691145Copy full SHA for c691145
src/unix.rs
@@ -22,6 +22,8 @@ pub struct Acquired {
22
23
impl Client {
24
pub fn new(mut limit: usize) -> io::Result<Client> {
25
+ assert!(limit <= 4096, "Can't have limit larger than 4096 since the pipe would block forever when writing to it");
26
+
27
let client = unsafe { Client::mk()? };
28
29
// I don't think the character written here matters, but I could be
0 commit comments