original_string: protected function finalizeWrite(): void
      {
          $res = $this->getResource();
          if (is_resource($res)) {
              @fread($res, 2048);
          }
          $this->closeSocket();
      }
code: protected function finalizeWrite(): void
      {
          $res = $this->getResource();
          if (is_resource($res)) {
              @fread($res, 2048);
          }
          $this->closeSocket();
      }
code_tokens: protected function finalizeWrite ( ) : void { $ res = $ this -> getResource ( ) ; if ( is_resource ( $ res ) ) { @ fread ( $ res , 2048 ) ; } $ this -> closeSocket ( ) ; }
docstring: Finalizes the request by reading some bytes and then closing the socket
  
  If we do not read some but close the socket too early, hipchat sometimes
  drops the request entirely.
docstring_tokens: Finalizes the request by reading some bytes and then closing the socket