|
From: Gabriel <gr...@ax...> - 2005-12-29 11:40:32
|
Hi,
this is my guess of what is happening:
it seems that the browser is indeed sending two requests. I did seen this=20
behavior a few times on IE, but never in firefox/mozilla. It has an=20
explanation though. Sometimes the http client sends a request to fetch the=
=20
content type and lenght of the HTTP resource, then sends the request again =
to=20
actually retrieve the content. When doing the former, the request has some=
=20
http header (whose name I don't remember right now). If that header is=20
present, the server has only to set the response's content type and content=
=20
lenght headers, but not to send the resource content, but just closing the=
=20
connection.=20
I'm 91% sure this is what's happening, and since geoserver is not checking =
for=20
this kind of request header, it's executing the full request twice. Though =
I=20
guess that the server should throw a socket exception due to the client bei=
ng=20
closing the connection once it gets the response's type and lenght (at leas=
t=20
it is what used to happen with IE)
Would you be so kind of logging out the request's headers to see if this=20
theory is true? just add the following code (might be wrong, writing from=20
memory) to AbstractService.doGet
Enumeration hnames =3D request.getHeaderNames();
while(hnames.hasMoreElements()){
String header =3D hnames.nextElement();
System.out.println("header: " + header + ", value=3D"=20
request.getHeader(header) );=20
}
regards,
Gabriel.
On Thursday 29 December 2005 05:12, Davis Ford wrote:
> OS is WinXP x64 (64-bit edition)
>
> FireFox is a special 64-bit build (Deer Park Alpha 1). I will try
> with the regular 32-bit build.
>
> IE is 6.0 (32-bit)
>
> It is quite strange...I'm not that savvy with servlet containers...it
> will probably take me a while to figure out how to get Tomcat up with
> GeoServer, but if all else fails, I'll go down that route.
>
> On 12/28/05, Chris Holmes <ch...@op...> wrote:
> > I've never seen this problem. I use firefox 1.5. On a windows box, and
> > just tested against RC7. It seems a bit odd, perhaps try it with
> > another servlet container? And what OS are you using?
> >
> > Chris
> >
> > Quoting Davis Ford <dav...@gm...>:
> > > Follow-Up...this is probably outside GeoServer domain, but I see this
> > > only with Mozilla Firefox. It does not happen with IE.
> > >
> > > Tracing the code, somewhere up the chain in:
> > >
> > > HttpConnection.handle() -- it finishes the request, closes the HTTP
> > > connection, but somehow turns around and repeats itself in Firefox,
> > > but not in IE.
> > >
> > > Has anyone else experienced anything like this?
> > >
> > > On 12/28/05, Davis Ford <dav...@gm...> wrote:
> > > > Hi, I am seeing a strange problem where a single WFS or WMS request
> > > > issued from my browser succeeds, but when I watch the output on the
> > > > console, I actually see the request executed twice.
> > > >
> > > > For example, a GetMap request is issued, and I see in the console:
> > > >
> > > > 23500531[FINE]
> > >
> > > org.vfny.geoserver.util.requests.readers.KvpRequestReader
> > >
> > > > - clean request is
> >
> > version=3D1.3.0&request=3DGetMap&layers=3Dteleatlas:RoadElement&BBOX=3D=
6.1,50.1,6
> >.12,
> >
> >
> > 50.12&srs=3DEPSG:4326&width=3D300&height=3D300&format=3Dimage/png&STYLE=
S=3Dsimple_r
> >oads
> >
> > > > Later, I see in the console:
> > > >
> > > > 23518500 [INFO] org.vfny.geoserver.servlets.AbstractService -
> > >
> > > Service handled
> > >
> > > > At this point, the map is displayed in the browser, but immediately
> > > > after in the console, I see this:
> > > >
> > > > 23518546 [FINE]
> > > > org.vfny.geoserver.util.requests.readers.KvpRequestReader - clean
> > > > request is
> >
> > version=3D1.3.0&request=3DGetMap&layers=3Dteleatlas:RoadElement&BBOX=3D=
6.1,50.1,6
> >.12,
> >
> >
> > 50.12&srs=3DEPSG:4326&width=3D300&height=3D300&format=3Dimage/png&STYLE=
S=3Dsimple_r
> >oads
> >
> > > > ...and the whole process is repeated again until the service is
> > > > handled. This seems to happen with both WFS queries and WMS GetMap
> > > > requests. Has anyone else seen this, or could anyone give me a
> > > > pointer on how to track down this issue?
> > > >
> > > > Thanks in advance,
> > > > Davis
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > > log files
> > > for problems? Stop! Download the new AJAX search engine that makes
> > > searching your log files as easy as surfing the web. DOWNLOAD
> > > SPLUNK!
> > > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick
> > > _______________________________________________
> > > Geoserver-users mailing list
> > > Geo...@li...
> > > https://lists.sourceforge.net/lists/listinfo/geoserver-users
> >
> > ----------------------------------------------------------
> > This mail sent through IMP: https://webmail.limegroup.com/
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3DClick
> _______________________________________________
> Geoserver-users mailing list
> Geo...@li...
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
=2D-=20
Gabriel Rold=E1n (gr...@ax...)
Axios Engineering (http://www.axios.es)
Tel. +34 944 41 63 84
=46ax. +34 944 41 64 90
|