code: public void setSettings(Settings settings) throws IOException {
      synchronized (writer) {
        synchronized (this) {
          if (shutdown) {
            throw new ConnectionShutdownException();
          }
          okHttpSettings.merge(settings);
        }
        writer.settings(settings);
      }
    }
docs: Merges {@code settings} into this peer's settings and sends them to the remote peer.