| 843 | |
| 844 | |
| 845 | bool Connection::getWrapErrors(const ISC_STATUS* status) |
| 846 | { |
| 847 | // Detect if connection is broken |
| 848 | switch (status[1]) |
| 849 | { |
| 850 | case isc_network_error: |
| 851 | case isc_net_read_err: |
| 852 | case isc_net_write_err: |
| 853 | m_broken = true; |
| 854 | break; |
| 855 | |
| 856 | // Always wrap shutdown errors, else user application will disconnect |
| 857 | case isc_att_shutdown: |
| 858 | case isc_shutdown: |
| 859 | m_broken = true; |
| 860 | return true; |
| 861 | } |
| 862 | |
| 863 | return m_wrapErrors; |
| 864 | } |
| 865 | |
| 866 | |
| 867 | /// ConnectionsPool |