[OSM-talk] API Stalement (was: Errors on the API)

Immanuel Scholz immanuel.scholz at gmx.de
Thu Jun 8 10:59:10 BST 2006


Hi,

> No, I don't get a connection reset.  I get NOTHING.  I can wait an
> hour or more and still get nothing - the socket connection still
> appears to be open, just the server isn't saying anything.

JOSM has an 15 Seconds Timeout for connecting to the OSM server, but has
no timeout for the open connection if no data arrive.

The OSM server take almost all time in the preparing of the data and if it
fails for any reason, it is after the connection has been established but
before any response data is sent. In this case, the server seem to not
send anything forever.


The 5 Minutes Timeout observed is usually from the client side (or an
proxy, e.g. your ISP between). You can verify this with any sniffer, e.g.
"Ethereal".

Many operating systems have a timeout for connections to free allocated
but staled TCP ports and handles. It looks like your system has no
timeout, so both - the server and you are refusing to send any data. ;-(


The steps I'd like to take to solve this forever are:
- Fixing the server to send a correct timestamp for all objects (currently
missing timestamp for ways). This is a prerequisite for the ability to mix
up data from different data sources (BUT which came from the same original
server!)
- Setting up a dedicated server that serves read-only map requests.
- The dedicated server runs little-osm, which has no memory increase for
larger areas and start delivering the data as soon as the connection
starts (no prepare-step necessary)
- getting JOSM to upload to a different server than downloading.

Ciao, Imi






More information about the talk mailing list