Issue1908

classification
Title: Patch for 'Unmapped exception: java.net.NoRouteToHostException'
Type: Severity: normal
Components: Library Versions: 2.5.3b2, 2.7a1
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: amak Nosy List: amak, roderickc
Priority: Keywords: patch

Created on 2012-05-31.21:09:53 by roderickc, last changed 2012-06-08.21:06:29 by amak.

Files
File name Uploaded Description Edit Remove
host_unreachable_fix.patch roderickc, 2012-05-31.21:09:52
Messages
msg7178 (view) Author: Roderick Colenbrander (roderickc) Date: 2012-05-31.21:09:52
Connecting to an unreachable host in Jython 2.5x/2.7x triggers: '     [java] Exception: Failed to connect to socket: Unmapped exception: java.net.NoRouteToHostException: No route to host'. This patch maps the error to the proper errno number, EHOSTUNREACH. Now Jython has the same behavior as CPython. It looks like more network errors aren't mapped correctly yet.

Thanks,
Roderick Colenbrander
msg7180 (view) Author: Alan Kennedy (amak) Date: 2012-06-05.19:54:34
Patch looks good, I will apply soon.
msg7193 (view) Author: Alan Kennedy (amak) Date: 2012-06-08.21:06:29
Fix checked in 

tip: http://hg.python.org/jython/rev/cd15a0e2cb15
2.5: http://hg.python.org/jython/rev/68c9cd730297

Thanks for taking the time to submit the patch.
History
Date User Action Args
2012-06-08 21:06:29amaksetstatus: open -> closed
resolution: fixed
messages: + msg7193
2012-06-05 19:54:35amaksetassignee: amak
messages: + msg7180
nosy: + amak
2012-05-31 21:09:53roderickccreate