Skip to content
This repository was archived by the owner on Jul 24, 2021. It is now read-only.
This repository was archived by the owner on Jul 24, 2021. It is now read-only.

Incorrect HTTP keep-alive handling when a Proxy-Connection: header is forwarded as JOSM does with old/limited HTTP proxies #3241

Description

@openstreetmap-trac

Reporter: Fabi2
[Submitted to the original trac issue database at 10.09am, Tuesday, 21st September 2010]

I found this as I tried to trach down an proxy bug in JOSM which is reported here: https://josm.openstreetmap.de/ticket/5404

Since the API always force close the connection after one HTTP-request, it should sent a "Connection: close" header with HTTP/1.1. But this is not the real problem.

The force close of the HTTP connection is not done on the API
close call (e.g. PUT http://api.openstreetmap.org/api/0.6/changeset/xxxxxx/close). When java (JOSM) sends it's non standard Proxy-Connection:-header over a broken proxy, which forwards this header, then the client behind the proxy will wait forever, because the API-Webserver will transform this broken header into a "Connection: keep-alive" and don't close the network connection after a close request.

Maybe this is only a missing close() on the network file descriptor/socket when an API close call is made, i will assume this because no date is returned by the API server.

This bug is really a fun brake with JOSM and it seems as they don't know how to fix this in JOSM, but seems also an API bug.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions