Issue1049

classification
Title: tes_socket_ssl test_rude_shutdown deadlocks
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: amak Nosy List: amak, pjenvey
Priority: low Keywords:

Created on 2008-06-08.01:00:31 by pjenvey, last changed 2013-02-25.23:50:30 by amak.

Files
File name Uploaded Description Edit Remove
SSLConnectTest.java amak, 2009-04-19.15:46:17
test_keystore.jks amak, 2009-04-19.15:46:34
Messages
msg3242 (view) Author: Philip Jenvey (pjenvey) Date: 2008-06-08.01:00:29
This test is currently disabled because the SSL handshaking appears to 
deadlock when the server has rudely closed the connection
msg3274 (view) Author: Alan Kennedy (amak) Date: 2008-06-11.18:44:00
This appears to be a java issue.

The attached java file implements the same series of java calls as the
jython test_rude_shutdown; the test hangs on the
ssl_socket.startHandshake().

This happens regardless if the socket was created with java.nio (as the
jython socket module does) or with java.net (sometimes the socket
creation method can affect later behaviour).

Given that this bug can be recreated with pure java equivalent to the
failing jython, it is likely that this is a java bug.

If it is a bug at all; I'm a little dubious about an SSL client
handshaking with a non-SSL server socket. But if the test passes on
cpython, then it is obviously a valid thing to do, on some platforms at
least.

I'd like to do a little more reading before raising a bug with Sun about
this. Meantime, all thoughts and opinions welcome.

BTW, I tested this on Ubuntu and Sun JDK 1.5.0_13. Will test on other
platforms also.
msg4541 (view) Author: Alan Kennedy (amak) Date: 2009-04-19.15:46:17
I'm adding a new version of the SSLConnectTest.java file, which properly
sets up an SSL server socket for the client to connect to.

I'm also uploading a JKS (Java KeyStore) file, containing a
self-generated key, required for opening a server SSL socket.
msg4542 (view) Author: Alan Kennedy (amak) Date: 2009-04-19.15:46:34
Uploading the test keystore.
msg4543 (view) Author: Alan Kennedy (amak) Date: 2009-04-19.15:48:39
I'm starting to think that the failing test is bogus.

The expectation that a client SSL socket should be able to handshake
with a non-SSL server socket is flawed.

But the attached code still hangs, even when the server side is an SSL
socket. I will work on this code to see why it hangs.
msg7777 (view) Author: Alan Kennedy (amak) Date: 2013-02-25.23:50:30
Closing this issue as invalid.
History
Date User Action Args
2013-02-25 23:50:30amaksetstatus: open -> closed
resolution: invalid
messages: + msg7777
2009-04-19 15:48:39amaksetmessages: + msg4543
2009-04-19 15:46:36amaksetfiles: + test_keystore.jks
messages: + msg4542
2009-04-19 15:46:18amaksetfiles: + SSLConnectTest.java
messages: + msg4541
2009-04-19 15:26:07amaksetfiles: - SSLConnectTest.java
2009-03-14 03:10:46fwierzbickisetpriority: normal -> low
2008-12-17 19:13:03fwierzbickisetpriority: normal
2008-06-11 18:44:01amaksetfiles: + SSLConnectTest.java
messages: + msg3274
2008-06-08 01:00:31pjenveycreate