Skip to content

fix: TCPKeepAliveAdapter does not setting TCP_KEEPALIVE (#391) - #406

Open
Sushant1-oops wants to merge 1 commit into
requests:mainfrom
Sushant1-oops:ai-fix/issue-391-1392ce7e
Open

Sushant1-oops wants to merge 1 commit into
requests:mainfrom
Sushant1-oops:ai-fix/issue-391-1392ce7e

Conversation

@Sushant1-oops

Copy link
Copy Markdown

AI-generated fix

Fix TCPKeepAliveAdapter on macOS / platforms where TCP_KEEPIDLE is missing by ensuring TCP_KEEPALIVE option is correctly appended when present or falling back to the standard macOS TCP_KEEPALIVE socket option constant.

Fixes #391

Tests: still failing after a repair round (python -m pytest -x -q). Please review before merging.

Files changed:

  • requests_toolbelt/adapters/socket_options.py

Generated by Issue Solver (MiniMax via OpenRouter, Gemini fallback).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TCPKeepAliveAdapter does not setting TCP_KEEPALIVE

1 participant