cache and connection improvements

This commit is contained in:
anhefti 2021-11-16 10:11:29 +01:00
parent 072930abb2
commit fb0fc2aec0
3 changed files with 7 additions and 6 deletions

View file

@ -225,7 +225,7 @@ public class SEBClientEventAdminServiceImpl implements SEBClientEventAdminServic
private final String sort;
private int pageNumber = 1;
private final int pageSize = 100;
private final int pageSize = 1000;
private Collection<ClientEventRecord> nextRecords;

View file

@ -280,10 +280,11 @@ public class SEBClientConnectionServiceImpl implements SEBClientConnectionServic
return clientConnection;
} else {
// It seems that this is a request from an other device then the original
log.error("ClientConnection integrity violation: client connection mismatch: {}",
clientConnection);
throw new IllegalArgumentException(
"ClientConnection integrity violation: client connection mismatch");
log.warn(
"SEB retired to establish an already established client connection with another IP address. Client adress: {} : {}",
clientConnection.clientAddress,
clientAddress);
return clientConnection;
}
} else if (!clientConnection.status.clientActiveStatus) {
log.error("ClientConnection integrity violation: client connection is not in expected state: {}",

View file

@ -86,7 +86,7 @@
<key-type>java.lang.String</key-type>
<value-type>ch.ethz.seb.sebserver.gbl.model.exam.QuizData</value-type>
<expiry>
<ttl unit="minutes">1</ttl>
<ttl unit="minutes">5</ttl>
</expiry>
<resources>
<heap unit="entries">10000</heap>