Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

ensureConnected does not reconnect when there is a stale connection handle #53

@cminter

Description

@cminter

ifFalse: [

I'm using P3 from Glamorous Toolkit (GT) and it looks like there is a bug when a connection is open and then we quit and restart GT. This issue breaks the usage of GT PostgreSQL snippets. They don't work anymore after restarting GT. The error is: ConnectionClosed : Cannot write data. (Manual workaround is to invoke self close on the object.)

What happens is ensureConnected does not reconnect when there is a stale connection handle.
After isConnected is found to be false connect is called but it doesn't call open because of the old connection handle is not nil.

I am new to Smalltalk, GT, P3. I think this is a fix...
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions