code: protected synchronized void flushPendingWriteRequests() throws Exception {
          LOGGER.debug(" flushPendingWriteRequests()");
  
          if (writeRequestQueue == null) {
              return;
          }
  
          Event scheduledWrite;
          while ((scheduledWrite = writeRequestQueue.poll()) != null) {
              LOGGER.debug(" Flushing buffered write request: {}",
                      scheduledWrite.data);
  
              getProxyFilter().filterWrite(scheduledWrite.nextFilter,
                      getSession(), (WriteRequest) scheduledWrite.data);
          }
  
          // Free queue
          writeRequestQueue = null;
      }
docs: Send any write requests which were queued whilst waiting for handshaking to complete.