Timing out Broadcater's write operation - Atmosphere/atmosphere GitHub Wiki

By default, Atmosphere will always waits for the write operation to complete, but there are scenario where you want to set a maximum time for the operation to complete, and if the maximum time is completed, close the connection. If that's the case, just add in your web.xml:

      <init-param>
          <param-name>org.atmosphere.cpr.Broadcaster.writeTimeout</param-name>
          <param-value>VALUE</param-value>
      </init-param>

where VALUE is in milliseconds.

⚠️ **GitHub.com Fallback** ⚠️