[OpenSIPS-Devel] [OpenSIPS/opensips] a56578: [db_oracle] Do not change asynch mode when connect...

Liviu Chircu noreply at github.com
Wed Nov 16 07:52:33 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a5657831f9b216168d2dc974b96e4474e15ff15a
      https://github.com/OpenSIPS/opensips/commit/a5657831f9b216168d2dc974b96e4474e15ff15a
  Author: Gang Zhuo <gang.zhuo at gmail.com>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M modules/db_oracle/asynch.c
    M modules/db_oracle/dbase.c
    M modules/db_oracle/ora_con.h

  Log Message:
  -----------
  [db_oracle] Do not change asynch mode when connection lost.

The sessions may be ended due to a network error,
and change OCI_ATTR_NONBLOCKING_MODE attribute with no session
will cause "ORA-03126: network driver does not support non-blocking
operations" error.

In the case, the function done_timelimit will failed with ORA-03126 error.
The error is not considered as a connection loss,
and subsequent operations will always throw this error,
and the lost connection never reconnect.


  Commit: bf7830933482a7ca22c02c7c3d69291c620d1b0c
      https://github.com/OpenSIPS/opensips/commit/bf7830933482a7ca22c02c7c3d69291c620d1b0c
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M modules/db_oracle/asynch.c
    M modules/db_oracle/dbase.c
    M modules/db_oracle/ora_con.h

  Log Message:
  -----------
  Merge branch 'GangZhuo-ORA-03126'


Compare: https://github.com/OpenSIPS/opensips/compare/f904694120ae...bf7830933482



More information about the Devel mailing list