Message4456

Author kfitch42
Recipients kfitch42
Date 2009-04-06.17:17:45
SpamBayes Score 2.0987889e-10
Marked as misclassified No
Message-id <1239038267.87.0.950332726346.issue1304@psf.upfronthosting.co.za>
In-reply-to
Content
I have a simple python client/server system that works just fine in
CPython, but it is painfully slow under Jython. I have traced it down to
a send call on a TCP socket. The problem only seems to arise if the same
socket is used for sending and receiving, but not when sending only. The
problem is quite sporadic ... working fine sometimes. I see the problem
even if no data is actually being received, it is just calling recv.

The end result is that sending 192 bytes usually takes <= 0.001 seconds
... but occasionally takes upwards of 12 seconds!

To reproduce this I keep byteSink.py running in CPython and then run
problemReport.py under Jython several times (5-10 is usually enough to
see the worst behaviour).

This is all done on Ubuntu 8.04 using OpenJDK 1.6.
History
Date User Action Args
2009-04-06 17:17:48kfitch42setrecipients: + kfitch42
2009-04-06 17:17:47kfitch42setmessageid: <1239038267.87.0.950332726346.issue1304@psf.upfronthosting.co.za>
2009-04-06 17:17:47kfitch42linkissue1304 messages
2009-04-06 17:17:46kfitch42create