Client.close()

Hi,

I was wandering whether we should really close the client with client.close() in Python Client v4 after each connection is finished.

Opening the client before every new query has a significant overhead (in my case 500ms with WCS) which I would like to get rid of.

Needles to say Python Client v3 didn’t have any explicit closure.

Imagine a web application running indefinetely which accepts user input. Would it be possible to leave the connection open? Or would the single connection get overloaded with many queries and it is really necessary to open a new connection for every new query?

Thank you very much for your input

hi @Tomas !!

Have you tried passing skip_init_checks at client initiation?

May this is the cause of the overhead?