JackKuo's Blog

Tech | Open Source | Altruism

CancelIoEx Needs Twice Enter for Input

Once you use it to cancel the blocking getline() or getchar() and resume getline() or getchar() again, the first input (hit Enter key) will not be caught by your code… It’s weird.

為何瀏覽器不支援 SRV Record?

這問題在唸書時期也曾困擾我,前陣子被客戶問到這問題,雖然可以以 out of scope 打發他,不過實在太好奇了還是幫他找了一下。

為何 cURL 總是偏好某個 IPv6 地址?

同事最近被問說「為什麼 NLB 啟用 dualstack 後,從位於同 AZ 內的 EC2 使用 `curl -6` 去拜訪,永遠都是拜訪同 subnet 的 NLB 節點?」這問題一直可以復現,也很確定 dig 出來的結果會有 round robin,但若從 VPC 外的 IPv6 網路測試就沒有這個問題,因此我跟其他同事們便好奇地去找原因。