8138638: Security tests using jdk/test/sun/security/krb5/auto/KDC.java fail intermittently with OutOfMemoryError
Reviewed-by: xuelei
This commit is contained in:
parent
e4927570de
commit
2cde289af4
@ -1280,7 +1280,11 @@ public class KDC {
|
|||||||
System.out.println(">>>>> TCP connection established");
|
System.out.println(">>>>> TCP connection established");
|
||||||
DataInputStream in = new DataInputStream(socket.getInputStream());
|
DataInputStream in = new DataInputStream(socket.getInputStream());
|
||||||
DataOutputStream out = new DataOutputStream(socket.getOutputStream());
|
DataOutputStream out = new DataOutputStream(socket.getOutputStream());
|
||||||
byte[] token = new byte[in.readInt()];
|
int len = in.readInt();
|
||||||
|
if (len > 65535) {
|
||||||
|
throw new Exception("Huge request not supported");
|
||||||
|
}
|
||||||
|
byte[] token = new byte[len];
|
||||||
in.readFully(token);
|
in.readFully(token);
|
||||||
q.put(new Job(processMessage(token), socket, out));
|
q.put(new Job(processMessage(token), socket, out));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user