code: private void onRead0() {
          assert inWire.startUse();
  
          ensureCapacity();
  
          try {
  
              while (!inWire.bytes().isEmpty()) {
  
                  try (DocumentContext dc = inWire.readingDocument()) {
                      if (!dc.isPresent())
                          return;
  
                      try {
                          if (YamlLogging.showServerReads())
                              logYaml(dc);
                          onRead(dc, outWire);
                          onWrite(outWire);
                      } catch (Exception e) {
                          Jvm.warn().on(getClass(), "inWire=" + inWire.getClass() + ",yaml=" + Wires.fromSizePrefixedBlobs(dc), e);
                      }
                  }
              }
  
          } finally {
              assert inWire.endUse();
          }
      }
docs: process all messages in this batch, provided there is plenty of output space.