dev@glassfish.java.net

Re: Fw: 30second timeout

From: Dies Koper <diesk_at_fast.au.fujitsu.com>
Date: Thu, 4 Mar 2010 11:45:40 +1100

Most Grizzly experts are on users_at_grizzly.dev.java.net:

https://grizzly.dev.java.net/servlets/SummarizeList?listName=users

Regards,
Dies


On 4/03/2010 11:22, emiddio-verizon wrote:
> i got no response from the user_at_glassfish.dev.java.net
> <mailto:user_at_glassfish.dev.java.net> list;
> the question remains.
> i still seem to get the 30 second and/or 3MByte limit after adding
>
> -Dcom.sun.grizzly.readTimeout=86400
>
> -Dcom.sun.grizzly.readTimeout=86400
>
>
>
> which i learned about fromhttp://java.dzone.com/articles/putting-glassfish-v3
>
>
>
> when connecting to gfv3 at localhost:8080 i can dnload a 80MByte file without problems -- even before these
>
> -D additions. the failures occur when connecting to my gfv3 at home from some other location -- on the
>
> internet side of my home.
>
>
>
> they occur when i use a web proxy to test my server or when i visitied a friend and conneted from his home computer.
>
>
>
> i found that when using firefox -- to dnload an 80 MByte video file -- if i used firefox's dnload manager to pause
>
> the dnload about every 2MByte, then un-pause i could dnload the entire file.
>
>
>
> but if i just attempt a non-pause dnload -- it fails after 30seconds -- says its completed -- with only about 3MB of the
>
> file dnloaded.
>
>
>
> whats going on? how do i fix ? please read info from prev post below.
>
>
>
> thanks
>
>
>
> gary
>
>
>
>
>
> ----- Original Message -----
> *From:* emiddio-verizon <mailto:emiddio_at_verizon.net>
> *To:* users_at_glassfish.dev.java.net <mailto:users_at_glassfish.dev.java.net>
> *Sent:* Tuesday, March 02, 2010 2:44 PM
> *Subject:* 30second timeout
>
> i was/am using gfv3 to host a little web site for some personal stuff.
> i put some video's there --
> and discovered if someone tries to download more than 3MByte of video --
> which takes more than 30 seconds,
> (my upload is limited to 768Kbit) the upload to the client terminates.
> googling i found some discussion of "timeouts" with glassfish-- but
> questions remain .
> where should i put the -D <specific options> at -- in the gfv3 console
> jvm config area ?
> i am thinking this stuff would go into domain.xml ?
> i believe some of these timeouts are for the purpose of avoiding some
> kind of "attack".
> would it not be smarter if gfv3 could not just look at the age of the
> request -- but also at the traffic that is moving
> on the link -- an idle link is one thing.
> but a link moving data at 500=Kbits /second doesnt seem like an "attack".
> thanks
> gary