dev@grizzly.java.net

R: Re: issue with 18d gws

From: <rama.rama_at_tiscali.it>
Date: Thu, 5 Nov 2009 17:16:08 +0100 (CET)

it could be, but with .16 version everything was ok, and the new
release of the application,
compared to .16 version, was very minimal.


In any case, i'll try to give a testa case in the near future :)

tnx!


---------
Hi,

unfortunately from this example it's difficult to say
what's wrong...
If your application is complex enough, there is
possibility the issue
is somewhere there, not Grizzly itself. I'd
really appreciate if you
can send some testcase to work with.

Thank
you.

WBR,
Alexey.

>
> Hi,
>
> all the issue (1-2-3) happear with the
same WS configuration,
> that is
>
>
> public class WebServer extends
GrizzlyWebServer {
>
>
>
> public WebServer(int port, boolean secure){

> super(port,"",
> secure);
> init(secure);
> }
>
>
public void init(boolean
> secure) {
> this.getSelectorThread().
setDisplayConfiguration
> (true);
> this.getSelectorThread().
setCompression("on");
>
> this.addGrizzlyAdapter(new EulerResAdapter(),
new String[]{"/"});
>
> this.addAsyncFilter(new
EulerAsyncAdapter());
> }
> }
>
>
> where
>
> EulerAsyncAdapter -->

> doFilter(e) if (uri.contains("push")) queue.add
> (e) return false;
else execute,postexecute return false;
>
>
>
> EulerResAdapter -->
>
service(req, res) --> do the rest (most of the part
> is read an xml
and send out an xml via httpResp.getWriter().print
> (response);)
>
>
>

>
>
>
>
>
> Hi Rama,
>
> how do you configure server part to
>
reproduce 1) or 2) issues?
> For example issue 1), how often you
observe
> it, what kind of requests
> you do (some HTTP dump)?
>
>
Unfortunately
> without testcases it will be difficult to fix something
:
> (, but we
> can try to solve issues one by one, if you'll be able
to
> provide more
> info.
>
> Thanks.
>
> WBR,
> Alexey.
>
>> 1)
>>
when i do a request for
>> a
> certain page (that should return a big
xml) i got
>> <fancy xml>
>>
>>
> <blabla/>
>> <blabla/>
>> <blabla/>

>> Http header (!?!?!)
>> <blabla/>
>>
> <blabla/>
>>
>> <blabla/>
>>
</fancy xml>
>>
>> this bug was already present
> in the past, and
>>
if i remember well was a problem with http1.0 or
> something like that

>> (i
>> don't know if this is till the case)
>> In
> any case, what's
happen is that
>> the header are sended after a piece
> of request is
issued :(
>>
>>
>> 2)
>> wget
>> issue
>> if i do a
>> prometeo:
> ~#
wget -S -v http://192.168.2.114:
>> 2480/base_c2.swf
>>
>> this is the

> output (correct)
>>
>> --2009-11-05 11:51:
>> 08-- http://192.
168.2.114:
> 2480/base_c2.swf
>> Connecting to 192.168.2.114:
>>
2480... connected.
>>
> HTTP request sent, awaiting response...
>>
HTTP/1.1
>> 200 OK
>> ETag:
> g1m02yog29nf
>> Content-Type:
application/x-shockwave-
>> flash
>>
> Content-Length: 105819
>> Date:
Thu, 05 Nov 2009 11:51:08 GMT
>>
>>
> Connection: Keep-Alive
>> Length:
105819 (103K) [application/x-
> shockwave-
>> flash]
>> Saving to:
`base_c2.swf'
>>
>> 100%
>> [=
>> =
>> =
>
>> =
>> =
>> =
>> =
>> =
>>
=
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>>
> =
>> =
>> =
>> =
>> =
>>
=
>> =
>> =
>> =
>>
>
====================================================================>]

>
>> 105,819 --.-K/s in 0s
>>
>> 2009-11-05 11:51:08 (337 MB/s) -

> `base_c2.
>> swf' saved [105819/105819]
>>
>>
>> but, if i do the
same
> command 2-3 times,
>> wget need to retry it 3 times before
correctly get
> the base_c2.swf...
>>
>> this is really strange because
the pc is
> obviusly the same machine
>> (wget machine is the machine
that host GWS)
> and there is noone
>> connected to that machine, so
servicing this file
> should be
>> always a
>> success without any
retry! also, as a side note,
> i simply execute wget
>> 3-4 times (UP
arrow enter) and they should't be
> concurrent afaik
>>
>>
>> 3)
>>
>>
this is the most difficult to explain and
> reproduce...
>> internet
>>
explorer 8 only bug :S
>> a bit of history on
> how the system work
>>
i have 2
>> connection a <push over pull> and a
> <normal pull> request

>> so,
>> basically, on flash i have 2 different
> connector that work
as follow
>>
>> <PULL> ---> GWS ---> <RESPONSE>--->
> CLIENT
>> <PUSH>
---> GWS ---> WAIT
>> TILL EVENT---> <RESPONSE>--->
> CLIENT
>> this
always worked like a charm,
>> on .16
>> this kind of work
> is handled
via a asyncexecutorservices, btw.
>>
>> unfortunatly with .18d
> what's
happen is that
>> after a couple of refresh
>> of the browser, the
>
socket doesn't work anymore in an indipendent way,
>> and every request

> seems to be serialized.
>> i had the idea that the issue
>> was on
>
keepalive, but probably i was wrong.
>>
>> what solved the problem,
>>
was
> to put a lighttpd with a mod_proxy before GWS webserver :S
>>
>>
this
>>
> isn't really convenient.
>>
>>
>> If you need more help, let
me know,
>>
> unfortunatly i can't provide any test case, due to the
difficulty of
>>
> reproduce such kind of error :(
>> i have already
try with a plain
>>
> webserver, but try to implement a push over pull
and a pull for flash
>>
> is quite a long work :(
>>
>> take care!
>>

>>
>>
>>
>>
>>
>>
>> Passa a Tiscali
> Tutto Incluso Light: telefono +
adsl 8 Mb senza
>> limiti a soli 9,95
> euro al mese fino al
01/04/2010. Gratis la Sim
>> Tiscali Mobile con
> 25 euro di traffico.

>>
>> L’offerta è valida solo se attivi entro il
> 05/11/09
>>
>> http:
//abbonati.tiscali.it/telefono-
> adsl/prodotti/tc/tuttoincluso_light/?
WT.mc_id=01fw
>>
>>
>
---------------------------------------------------------------------

>>
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
>>
For
> additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>>
>
>

>
>
>
>
> Passa a Tiscali Tutto Incluso Light: telefono + adsl 8 Mb
senza
> limiti a soli 9,95 euro al mese fino al 01/04/2010. Gratis la
Sim
> Tiscali Mobile con 25 euro di traffico.
>
> L’offerta è valida
solo se attivi entro il 05/11/09
>
> http://abbonati.tiscali.
it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw
>
>
---------------------------------------------------------------------
>
To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For
additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>



---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
For
additional commands, e-mail: dev-help_at_grizzly.dev.java.net






Passa a Tiscali Tutto Incluso Light: telefono + adsl 8 Mb senza limiti a soli 9,95 euro al mese fino al 01/04/2010. Gratis la Sim Tiscali Mobile con 25 euro di traffico.

L’offerta è valida solo se attivi entro il 05/11/09

http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/?WT.mc_id=01fw