Loading... (original) (raw)
In the attached testcase, it tries to connect to java.sun.com to get 2 files and print it out. if I set it to go thru a password protected proxy, the serial case will only pop up the password authentication dialog for the first connection, the 2nd connection it will uses the cached password.
but if the test case spawns 2 threads to do the connection, the password auth. dialog will pop up twice and it didn't use the cached username and password.
for serial case:
java -DproxyHost=comanche.sfbay.sun.com -DproxyPort=8080 test serial
for multi thread case:
java -DproxyHost=comanche.sfbay.sun.com -DproxyPort=8080 test mthread
username: jaws
password: jawstest