Skip to content

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

@bckfnn

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?

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