Skip to content

How to set connect timeout use dpiConn_create #148

@louishust

Description

@louishust
  1. What version of ODPI-C are you using (see dpi.h)?
  58 #define DPI_MAJOR_VERSION   4
  59 #define DPI_MINOR_VERSION   1
  60 #define DPI_PATCH_LEVEL     0
  61 #define DPI_VERSION_SUFFIX  "-dev"
  1. What OS (and version) is your application on?

centos7

  1. What compiler (and version) did you use?

gcc-8

  1. What is your version of the Oracle Client (e.g. Instant Client)? How was it installed? Where it is installed?

instantclient_19_8

  1. What is your Oracle Database version?

11g

  1. What is the PATH environment variable (on Windows) or LD_LIBRARY_PATH (on Linux) set to?

  2. What environment variables did you set? How exactly did you set them?

  3. What problem or error(s) you are seeing?

I want use dpiConn_create to create connection, but if i give the wrong ip address, dpiConn_create wait 60s , so i want to know How to set connect timeout when using dpiConn_create.

  1. Do you have a runnable code snippet to describe the problem?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions