catch exceptions ClientAbortException display a short message and return, to avoid the massive useless traceback in log

Signed-off-by: Bonome <bonome@tak.blue>
master
Bonome 7 years ago
parent c2416a57a8
commit 070df25f45
  1. 5
      airsonic-main/src/main/java/org/airsonic/player/controller/StreamController.java

@ -29,6 +29,7 @@ import org.airsonic.player.service.sonos.SonosHelper;
import org.airsonic.player.util.HttpRange; import org.airsonic.player.util.HttpRange;
import org.airsonic.player.util.StringUtil; import org.airsonic.player.util.StringUtil;
import org.airsonic.player.util.Util; import org.airsonic.player.util.Util;
import org.apache.catalina.connector.ClientAbortException;
import org.apache.commons.io.IOUtils; import org.apache.commons.io.IOUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -248,7 +249,9 @@ public class StreamController {
} }
} }
} }
} catch (ClientAbortException err) {
LOG.info("org.apache.catalina.connector.ClientAbortException: Connection reset");
return;
} finally { } finally {
if (status != null) { if (status != null) {
securityService.updateUserByteCounts(user, status.getBytesTransfered(), 0L, 0L); securityService.updateUserByteCounts(user, status.getBytesTransfered(), 0L, 0L);

Loading…
Cancel
Save