This is the sort of trouble that makes me recommend never using python stdlib networking in jython. Use java sockets.