diff --git a/doc/lorapipe.1.md b/doc/lorapipe.1.md index 403af11..7c9d3a0 100644 --- a/doc/lorapipe.1.md +++ b/doc/lorapipe.1.md @@ -358,6 +358,12 @@ be able to ping and talk back and forth between them. Standard commands will work at this stage. You may wish to adjust the packet size in /etc/axports up from 70. +To bring down the link, Ctrl-C the socat sessions and run `killall kissattach`. + +For more information, see: + +- [The Linux AX.25 HOWTO](http://www.tldp.org/HOWTO/AX25-HOWTO/) + # INSTALLATION **lorapipe** is a Rust program and can be built by running **`cargo diff --git a/src/lorastik.rs b/src/lorastik.rs index b5d3f5f..e9dcdd5 100644 --- a/src/lorastik.rs +++ b/src/lorastik.rs @@ -101,7 +101,7 @@ impl LoraStik { /// parameters after a read. pub fn new(ser: LoraSer, readqual: bool, txwait: u64, eotwait: u64) -> (LoraStik, crossbeam_channel::Receiver) { let (readerlinestx, readerlinesrx) = crossbeam_channel::unbounded(); - let (txblockstx, txblocksrx) = crossbeam_channel::unbounded(); + let (txblockstx, txblocksrx) = crossbeam_channel::bounded(3); let (readeroutput, readeroutputreader) = crossbeam_channel::unbounded(); let ser2 = ser.clone(); diff --git a/src/pipe.rs b/src/pipe.rs index 2b2c286..8bf3ad1 100644 --- a/src/pipe.rs +++ b/src/pipe.rs @@ -25,7 +25,7 @@ pub fn stdintolora(ls: &mut LoraStik, maxframesize: usize) -> io::Result<()> { let stdin = io::stdin(); let mut br = io::BufReader::new(stdin); - let mut buf = vec![0u8; 8192]; + let mut buf = vec![0u8; 4096]; loop { let res = br.read(&mut buf)?;