@@ -49,15 +49,15 @@ public boolean hasSession(String id) {
4949
5050 public JShellService session (String id , @ Nullable StartupScriptId startupScriptId ) throws DockerException {
5151 if (!hasSession (id )) {
52- return createSession (id , config .regularSessionTimeoutSeconds (), true , config .evalTimeoutSeconds (), startupScriptId );
52+ return createSession (id , config .regularSessionTimeoutSeconds (), true , config .evalTimeoutSeconds (), config . sysOutCharLimit (), startupScriptId );
5353 }
5454 return jshellSessions .get (id );
5555 }
5656 public JShellService session (@ Nullable StartupScriptId startupScriptId ) throws DockerException {
57- return createSession (UUID .randomUUID ().toString (), config .regularSessionTimeoutSeconds (), false , config .evalTimeoutSeconds (), startupScriptId );
57+ return createSession (UUID .randomUUID ().toString (), config .regularSessionTimeoutSeconds (), false , config .evalTimeoutSeconds (), config . sysOutCharLimit (), startupScriptId );
5858 }
5959 public JShellService oneTimeSession (@ Nullable StartupScriptId startupScriptId ) throws DockerException {
60- return createSession (UUID .randomUUID ().toString (), config .oneTimeSessionTimeoutSeconds (), false , config .evalTimeoutSeconds (), startupScriptId );
60+ return createSession (UUID .randomUUID ().toString (), config .oneTimeSessionTimeoutSeconds (), false , config .evalTimeoutSeconds (), config . sysOutCharLimit (), startupScriptId );
6161 }
6262
6363 public void deleteSession (String id ) throws DockerException {
@@ -66,7 +66,7 @@ public void deleteSession(String id) throws DockerException {
6666 scheduler .schedule (service ::close , 500 , TimeUnit .MILLISECONDS );
6767 }
6868
69- private synchronized JShellService createSession (String id , long sessionTimeout , boolean renewable , long evalTimeout , @ Nullable StartupScriptId startupScriptId ) throws DockerException {
69+ private synchronized JShellService createSession (String id , long sessionTimeout , boolean renewable , long evalTimeout , int sysOutCharLimit , @ Nullable StartupScriptId startupScriptId ) throws DockerException {
7070 if (hasSession (id )) { //Just in case race condition happens just before createSession
7171 return jshellSessions .get (id );
7272 }
@@ -79,6 +79,7 @@ private synchronized JShellService createSession(String id, long sessionTimeout,
7979 sessionTimeout ,
8080 renewable ,
8181 evalTimeout ,
82+ sysOutCharLimit ,
8283 config .dockerMaxRamMegaBytes (),
8384 config .dockerCPUsUsage (),
8485 startupScriptsService .get (startupScriptId ));
0 commit comments