just use the socket timeout for the wms timeout, instead of a spawned thread
store timepositions for time-aware wms layers: migrate your db!