Changeset 9 for src/main/java/geniusweb/partiesserver/websocket
- Timestamp:
- 01/28/20 10:20:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/geniusweb/partiesserver/websocket/PartySocket.java
r8 r9 47 47 private final RunningPartiesRepo runningparties; 48 48 private final List<Listener<Inform>> listeners = new CopyOnWriteArrayList<Listener<Inform>>(); 49 private static final int MAX_MESSAGE_SIZE = 20 * 1024 * 1024; 49 50 50 51 // should all be final, except that we can only set them when start is … … 73 74 throw new IllegalArgumentException("party can't be null"); 74 75 } 76 session.setMaxTextMessageBufferSize(MAX_MESSAGE_SIZE); 77 session.setMaxBinaryMessageBufferSize(MAX_MESSAGE_SIZE); 78 75 79 this.session = session; 76 80 this.partyID = new PartyId(partyidname); … … 134 138 } catch (Throwable e) { 135 139 log.log(Level.WARNING, "Party failed on inform.", e); 140 e.printStackTrace(); 141 // severe as someone wants to debug that. Not severe for us 136 142 // we don't use jackson.writeValueAsString(e) here because 137 143 // CloseReason has 123 char limit.
Note:
See TracChangeset
for help on using the changeset viewer.