NIFI-1863 extended caught exception in cleaning task for HTTPContextMap

Signed-off-by: Matt Burgess <mattyb149@apache.org>

This closes #428
This commit is contained in:
Pierre Villard 2016-05-09 23:04:19 +02:00 committed by Matt Burgess
parent cb67520129
commit 887648c86f
1 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@
*/
package org.apache.nifi.http;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@ -177,8 +176,8 @@ public class StandardHttpContextMap extends AbstractControllerService implements
final AsyncContext async = entry.getValue().getAsync();
((HttpServletResponse) async.getResponse()).sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
async.complete();
} catch (final IOException ioe) {
// we are trying to indicate that we are unavailable. If we have an IOException and cannot respond,
} catch (final Exception e) {
// we are trying to indicate that we are unavailable. If we have an exception and cannot respond,
// then so be it. Nothing to really do here.
}
}