Greg Wooledge (greg at wooledge.org) wrote: > I'm running a recent Freenet snapshot (from freenetproject.org/snapshots/ > at the time when it said "freenet-latest.jar 23-Aug-2002 00:01 1.1M"). > Platform is OpenBSD 3.1, using the Linux JDK 1.3 (reported as "Sun > Microsystems Inc. version 1.3.1_04" in :8890/). > > When I connect to the FCP port, it accepts the connection, then > immediately closes it:
Following up to this: I poked around a bit using ktrace/kdump and found that the Freenet java process was getting a "Resource temporarily unavailable" error while attempting to read 1 byte from a file descriptor which I believe was the socket. This problem occurred on all Freenet ports, not just the FCP port. It seems that there's some sort of weird timing/blocking issue going on with this Java VM under OpenBSD (possibly a problem with the Linux emulation?). If I execute this command: $ telnet pegasus 8888 then it closes the connection as I indicated earlier. But if I execute this command: $ echo -e 'GET / HTTP/1.0\n' | nc pegasus 8888 then it works correctly. This makes me suspect that a read() from the socket which was supposed to be blocking was actually being done in non-blocking mode. Or maybe it's some other bug somewhere. I've switched to kaffe (which I had to use a bit of hackery to build; I've sent a message to the kaffe mailing list, but it's pending moderator approval), and the behavior seems to be much improved. So in summary, for OpenBSD users, kaffe 1.0.7 seems to be mandatory. -- Greg Wooledge | "Truth belongs to everybody." greg at wooledge.org | - The Red Hot Chili Peppers http://wooledge.org/~greg/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20020825/d467b630/attachment.pgp>
