Changeset a6e62afc for apps/jetty


Ignore:
Timestamp:
Mar 1, 2017 12:58:16 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
920572d
Parents:
e995a4c
Message:

Servlet: Catch OOM in MultiPartRequest?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/jetty/java/src/net/i2p/servlet/RequestWrapper.java

    re995a4c ra6e62afc  
    4444 *
    4545 *  So we could either extend and fix MultiPartFilter, and rewrite everything here,
    46  *  or copy MultiParRequest into our war and fix it so it compiles with Jetty 6.
     46 *  or copy MultiPartRequest into our war and fix it so it compiles with Jetty 6.
    4747 *  We do the latter.
    4848 *
     
    7272                        try {
    7373                                mpr = new MultiPartRequest( httpRequest );
     74                        } catch (OutOfMemoryError oome) {
     75                                // TODO Throw ioe from constructor?
     76                                oome.printStackTrace();
    7477                        } catch (IOException e) {
    75                                 // TODO Auto-generated catch block
     78                                // TODO Throw ioe from constructor?
    7679                                e.printStackTrace();
    7780                        }
Note: See TracChangeset for help on using the changeset viewer.