harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess" <mark.hind...@googlemail.com>
Subject [classlib] Network changes causing linux hang in HttpURLConnectionTest
Date Thu, 11 Dec 2008 08:54:42 GMT

When running 
org.apache.harmony.luni.tests.internal.net.www.protocol.http.HttpURLConnectionTest
I am seeing a hang in testConnectionPersistence method on linux (x86-64 and x86).
The system call trace shows:

22730 22:53:22.410114 poll([{fd=105, events=POLLIN|POLLPRI}], 1, 5000) = 1 ([{fd=105, revents=POLLIN}])
22730 22:53:22.410168 recvfrom(105, "<html></html>"..., 13, 0, NULL, NULL) = 13
22730 22:53:22.411624 ioctl(105, FIONREAD, [0]) = 0
22730 22:53:22.411687 poll([{fd=105, events=POLLIN|POLLPRI}], 1, 1) = 0 (Timeout)
22730 22:53:22.416590 recvfrom(105,  <unfinished ...>
22730 22:58:47.104906 <... recvfrom resumed> 0x7faa1435cf20, 1, 0, 0, 0) = ? ERESTARTSYS
(To be restarted)
22730 22:58:47.105262 --- SIGINT (Interrupt) @ 0 (0) ---

So it looks like we are trying a (blocking) read even though the poll
timed out saying there was nothing to read.  I'm trying to isolate the
bad change but unfortunately there were quite a few other problems
(compile errors and unsatisfied link errors around the time of the
change that seems to break it).

-Mark.




Mime
View raw message