openvidu-server: shorter final userId (from 32 to 16 chars)

pull/255/head
pabloFuente 2019-03-07 13:10:51 +01:00
parent d22b3b0f5e
commit 87e39e8a01
2 changed files with 3 additions and 2 deletions

View File

@ -473,7 +473,7 @@ public abstract class SessionManager {
sessionidAccumulatedRecordings.remove(session.getSessionId());
sessionidTokenTokenobj.remove(session.getSessionId());
log.warn("Session '{}' removed and closed", session.getSessionId());
log.info("Session '{}' removed and closed", session.getSessionId());
}
}

View File

@ -249,7 +249,8 @@ public class RpcHandler extends DefaultJsonRpcHandler<JsonObject> {
clientMetadata);
} else {
participant = sessionManager.newParticipant(sessionId, participantPrivatetId, tokenObj,
clientMetadata, location, platform, httpSession.getId());
clientMetadata, location, platform,
httpSession.getId().substring(0, Math.min(16, httpSession.getId().length())));
}
rpcConnection.setSessionId(sessionId);