aws / aws/amazon-redshift-python-driver

IPv6 support

未關閉
#230 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
220
分支
86
PR 合併指標
30 天內沒有已合併 PR

描述

## Driver version

2.1.2

## Redshift version

PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.70634

## Client Operating System

macos

## Python version

3.9

## Problem description

At my company we started using VPN that only works over IPv6.
Since that we started seeing below errors when connecting:

```
08:57:16 Encountered an error: Database Error ('communication error', gaierror(8, 'nodename nor servname provided, or not known'))
```

I looked into the code and it seems that the driver only works over ipv4.
I started a draft PR: https://github.com/aws/amazon-redshift-python-driver/pull/229
But I'm not sure whether that's enough.

Other SQL clients works fine over IPv6 (datagrip)

貢獻指南

開啟貢獻指南

研究方向

先檢查連線程式碼和 PR #229 草稿,然後在 macOS 上使用 Python 3.9,透過僅支援 IPv6 的 VPN 連線時重現回報的 gaierror。比較驅動程式的行為與回報中可正常運作的 SQL 用戶端,並驗證連線能夠透過 IPv6 成功建立,同時不破壞對 IPv4 的支援。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
databases, networking
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。