void request(int num){
synchronized (lock) {
    requested+=num;
    lock.notifyAll();
  }
}

void request ( int num ) { synchronized ( lock ) { requested += num ; lock . notifyAll ( ) ; } }
take note of more bytes requested by connection at remote endpoint .
