[josm-dev] Conflicts because of timeouts from a proxy

Dirk Stöcker openstreetmap at dstoecker.de
Fri Feb 22 20:40:36 UTC 2013


On Fri, 22 Feb 2013, Martin Vonwald wrote:

> What I now noticed is that right before the conflict appears JOSM
> always (I think!) says something like "New try in x seconds". What I
> suspect here is a timeout from the proxy I have to use at this place
> here. JOSM then tries to resend the data but the server already
> accepted it and therefore the resending creates a conflict.
>
> I have no possibility to test this assumption - at least I'm not aware
> of one. Can anyone else test this? Please let me know if I can help in
> any way.

Sadly you have one of the cases we can't easily solve. The upload of data 
can take a relatively long time due to server data validation. Now your 
proxy closes the connection and JOSM does not know whether data is 
accepted or not (the OSM protocol does not have transaction security 
like e.g. SQL databases).

There are two ways you can reduce such problems:
a) Use the possibility to upload smaller changesets. This will reduce the 
validation time and hopefully prevent connection aborts.
b) When you had an abort, after some time (e.g. 2 minutes) do an update 
of the data (file menu). This should detect most issues and resolve them. 
Remaining issues should be duplicates of new entries. Here a validator run 
to find duplicates can help.

Until we get a better upload protocol or someone implements a clever "take 
my last changesets and test if current changes match" algorithm you need 
to live with that issue.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)




More information about the josm-dev mailing list