geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
427 stars 489 forks source link

Harvester / GeoNetwork / Create one session per request #815

Closed fxprunayre closed 9 years ago

fxprunayre commented 9 years ago

While harvesting, a GeoNet harvester use the same XmlRequest object but the httpclient looks to create a new session for each requests - ie. each records which make the target node session number increasing a lot !

Something like this looks to fix it - to be discussed https://gist.github.com/fxprunayre/a8668d33c1eb5e44b677

fxprunayre commented 9 years ago

Should we also reduce the session timeout https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webResources/WEB-INF/web.xml#L392

Let's say, when editing, 15min could be enough ? 3hours sounds a bit too much.

jesseeichar commented 9 years ago

Makes sense to me. I looked at the commits and don't see anything that will cause a problem. I will test in geocat and pull back any patches required if there are problems.

Go ahead and close this.