npgsql - Npgsql2: [#1011310] Command timeouts after the first are not - Mailing list pgsql-committers

From fxjr@cvs.pgfoundry.org
Subject npgsql - Npgsql2: [#1011310] Command timeouts after the first are not
Date
Msg-id 201302271306.r1RD6ehL007398@cvs.pgfoundry.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------

[#1011310] Command timeouts after the first are not handled. Applied patch [#1011311]. Thank you, Evan Martin, for bug
reportand patch! 

When a command inside a transaction times out the caller may roll back to a savepoint and try again. This works OK the
firsttime. The second time it appears to work, but the rollback takes a long time. On the third attempt the command
returnsan empty result set. The attached console app reproduces the problem. On investigation, it appears that Npgsql
isnot cancelling any command after the first, once NpgsqlConnector.CancelRequestCalled is true. 

Modified Files:
--------------
    Npgsql2/src/Npgsql:
        NpgsqlConnector.cs (r1.39 -> r1.40)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/Npgsql/NpgsqlConnector.cs?r1=1.39&r2=1.40)
        NpgsqlReadyState.cs (r1.6 -> r1.7)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/Npgsql/NpgsqlReadyState.cs?r1=1.6&r2=1.7)
        NpgsqlState.cs (r1.24 -> r1.25)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/npgsql/Npgsql2/src/Npgsql/NpgsqlState.cs?r1=1.24&r2=1.25)


pgsql-committers by date:

Previous
From: Thom Brown
Date:
Subject: Re: pgsql: Fix pg_dumpall with database names containing =
Next
From: Tom Lane
Date:
Subject: pgsql: Add missing error check in regexp parser.