Increase troughput

I think this can be rewritten without the boolean, something like

for {
    // receive package
   if err {
       return
   }

 ... etc
}



}