summaryrefslogtreecommitdiff
path: root/psycopg/connection_int.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-06-04 01:31:36 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-06-04 01:31:36 +0100
commitd9c0b8166f9ba17eacb09d5861409ab862447331 (patch)
treec58184cefba8eac642c0c12d5d61562ccbeedcd4 /psycopg/connection_int.c
parent3aad3d3143a8e5963b06b8905a040521d3c3bcaa (diff)
downloadpsycopg2-d9c0b8166f9ba17eacb09d5861409ab862447331.tar.gz
Process notifies when data is received, not when the result is parsed
Notifies process access the connection, is not limited to the result, so There is the possibility of loss of protocol sync in multithread programs. Closes ticket #55.
Diffstat (limited to 'psycopg/connection_int.c')
-rw-r--r--psycopg/connection_int.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c
index 0544957..18a0a14 100644
--- a/psycopg/connection_int.c
+++ b/psycopg/connection_int.c
@@ -174,8 +174,6 @@ conn_notifies_process(connectionObject *self)
PyObject *notify = NULL;
PyObject *pid = NULL, *channel = NULL, *payload = NULL;
- /* TODO: we are called without the lock! */
-
while ((pgn = PQnotifies(self->pgconn)) != NULL) {
Dprintf("conn_notifies_process: got NOTIFY from pid %d, msg = %s",