Skip to content

[3.5.5] file download with HttpSnoopClient on jdk1.7 #571

Closed

Description

@bckfnn

Hi,

I hit a problem with using jdk1.7 in Windows 7 and running the HttpSnoopClient example code.

I've made a copy of the snoop client example and the file example

After starting the HttpStaticFileServer, I can download the files with my browers.

When running the HttpSnoopClient with jdk1.7

java -cp netty-3.5.5.Final.jar;target\classes org.jboss.netty.example.http.snoop.HttpSnoopClient http://localhost:8080/netty-3.5.5.Final.jar

the client hangs after downloading 8Kb of the file. The HttpStaticFileServer does not emit any output on stdout. Files smaller then 8Kb are retrived correctly. No CPU is used after 8Kb is retrived.

The jdk1.7 reports

java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)

When switching to jdk1.6:

java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

then HttpSnoopClient works without any problem.

Any ideas?

Activity

  1. ngocdaothanh commented on Aug 28, 2012

    @ngocdaothanh
    Contributor

    This issue may be related with #569. You should watch that issue too.

  2. fredericBregier commented on Aug 28, 2012

    @fredericBregier
    Member

    Hmmm, I'm not so sure this is related since the snoop and staticfile example don't use any part of the "multipart" codec.
    Indeed, it can only handle simple "get" and "post", but not file upload for instance (that's why multipart is made for).

  3. fredericBregier commented on Aug 28, 2012

    @fredericBregier
    Member

    Just for your information, I made a test with Windows 7 and JDK 1.7.0.5 64 bits, using HttpStaticFileServer and HttpSnoopClient with a file of >26KB (license/LICENSE.jboss-logging.txt from netty distribution), and everything went fine.

    I made the tests using both Netty 3.5.5 and the current available release from github.
    I made the tests also using javaw and java. For all tests, it works on my side...

    Could you provide more information ?

  4. bckfnn commented on Aug 29, 2012

    @bckfnn
    Author

    Thank you for verifying that netty obviously work. It somehow helped to know that it was something on my end, and disabling the "Link Scanner" in "AVG Anti-Virus Free Edition 2012" did the trick.

  5. added a commit that references this issue on Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions