public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "tromey at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug classpath/27163] FTP directory listing doesn't work Date: Wed, 19 Apr 2006 18:39:00 -0000 [thread overview] Message-ID: <20060419183913.23551.qmail@sourceware.org> (raw) In-Reply-To: <bug-27163-7936@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from tromey at gcc dot gnu dot org 2006-04-19 18:39 ------- I spent some time looking into this bug today. I am not certain that it is a bug, but I'm also not convinced that it isn't. I tracked it down to the ftp data socket's available() method returning 0. This causes the 'file.ready()' condition on the loop to return false. The test case does work for me on occasion... if the timing is right, data will be available on the socket for reading, and the ready() test will succeed. If this is a bug it is a rather obscure one, as in, perhaps the ftp code should ensure that some bytes are available before returning the input stream. It is probably more usual for loops like this to simply call readLine and then break out if it returns null. When I change the test case to do this, it works all the time. I only see the exception with gij 4.1 (not trunk) and the gcc.gnu.org site. I haven't looked into this yet. -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-04-19 18:39:12 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27163
next prev parent reply other threads:[~2006-04-19 18:39 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-04-14 17:28 [Bug libgcj/27163] New: " r_ovidius at eml dot cc 2006-04-19 18:39 ` tromey at gcc dot gnu dot org [this message] 2006-04-19 18:56 ` [Bug classpath/27163] " tromey at gcc dot gnu dot org 2006-04-20 17:20 ` r_ovidius at eml dot cc 2006-04-21 19:05 ` tromey at gcc dot gnu dot org 2006-04-21 21:44 ` cvs-commit at developer dot classpath dot org 2006-04-21 21:53 ` tromey at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20060419183913.23551.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).