Changeset 8 for src/main/java/geniusweb/runserver
- Timestamp:
- 01/28/20 10:20:01 (5 years ago)
- Location:
- src/main/java/geniusweb/runserver
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/geniusweb/runserver/RunNego.java
r5 r8 60 60 response.sendError(HttpServletResponse.SC_BAD_REQUEST, 61 61 e.getMessage()); 62 System.err.println("Run request failed " + reqstring); 63 e.printStackTrace(); // helpful for debugging run requests 62 64 return; 63 65 } -
src/main/java/geniusweb/runserver/RunningNego.java
r5 r8 83 83 out.print(jackson.writeValueAsString(sessionState)); 84 84 out.close(); 85 } catch ( IOException e) {85 } catch (Throwable e) { // also catch outOfMem etc. 86 86 log.log(Level.SEVERE, "Failed to write log file for " + sessionid, 87 87 e); -
src/main/java/geniusweb/runserver/WebSocketProtToPartyConn.java
r7 r8 46 46 implements ProtocolToPartyConn { 47 47 private final static ObjectMapper jackson = new ObjectMapper(); 48 // 20MB seems reasonable limit? 49 private static final int MAX_MESSAGE_SIZE = 20 * 1024 * 1024; 48 50 private final Reporter log; 49 51 … … 178 180 public void onOpen(Session session) { 179 181 log.log(Level.INFO, "Party is being connected: " + session); 182 session.setMaxTextMessageBufferSize(MAX_MESSAGE_SIZE); 183 session.setMaxBinaryMessageBufferSize(MAX_MESSAGE_SIZE); 180 184 this.session = session; 181 185 }
Note:
See TracChangeset
for help on using the changeset viewer.