brent- / geoda

Automatically exported from code.google.com/p/geoda
GNU General Public License v3.0
0 stars 0 forks source link

Database connect: long hang, no cancel option #68

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Attempted to connect to sample PostgreSQL DB with Cisco VPN.  Quite possible 
that VPN not working correctly.  Attempted to chose Table Name and obviously 
there was a problem connecting because the program hung for a long time.  After 
a few minutes, got the response: PQconnectdb failed. could not connect to 
server: operation timed out...."  This is good, but would be nice if there was 
a way to cancel.

Original issue reported on code.google.com by mmcc...@gmail.com on 23 Jan 2014 at 4:13

GoogleCodeExporter commented 8 years ago
That's the problem of OGR. What can be cancelled is reading data from DB once 
connection is established. In the case you described, it's the problem when 
establishing connection, which is implemented in one call on OGR side. I can't 
find a way to cancel it. ( I've tried to put this process in a separated 
thread, but boost doesn't support thread termination.)

Original comment by lixun...@gmail.com on 23 Jan 2014 at 8:14

GoogleCodeExporter commented 8 years ago
That's what I thought.  I'll move this to 1.8 milestone so that we don't forget 
about it.

Original comment by mmcc...@gmail.com on 23 Jan 2014 at 8:19

GoogleCodeExporter commented 8 years ago

Original comment by mmcc...@gmail.com on 10 Feb 2014 at 11:01

GoogleCodeExporter commented 8 years ago

Original comment by lixun...@gmail.com on 11 Feb 2014 at 3:55