Ignore:
Timestamp:
01/28/20 10:20:00 (5 years ago)
Author:
bart
Message:

Update 28 jan 2020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/geniusweb/partiesserver/websocket/PartySocket.java

    r8 r9  
    4747        private final RunningPartiesRepo runningparties;
    4848        private final List<Listener<Inform>> listeners = new CopyOnWriteArrayList<Listener<Inform>>();
     49        private static final int MAX_MESSAGE_SIZE = 20 * 1024 * 1024;
    4950
    5051        // should all be final, except that we can only set them when start is
     
    7374                        throw new IllegalArgumentException("party can't be null");
    7475                }
     76                session.setMaxTextMessageBufferSize(MAX_MESSAGE_SIZE);
     77                session.setMaxBinaryMessageBufferSize(MAX_MESSAGE_SIZE);
     78
    7579                this.session = session;
    7680                this.partyID = new PartyId(partyidname);
     
    134138                        } catch (Throwable e) {
    135139                                log.log(Level.WARNING, "Party failed on inform.", e);
     140                                e.printStackTrace();
     141                                // severe as someone wants to debug that. Not severe for us
    136142                                // we don't use jackson.writeValueAsString(e) here because
    137143                                // CloseReason has 123 char limit.
Note: See TracChangeset for help on using the changeset viewer.