René's URL Explorer Experiment


Title: T-17170 Resolve proxy settings once so forked RQ work horses on macOS stop crashing at flush by PetrHeinz · Pull Request #49 · logtail/logtail-python · GitHub

Open Graph Title: T-17170 Resolve proxy settings once so forked RQ work horses on macOS stop crashing at flush by PetrHeinz · Pull Request #49 · logtail/logtail-python

X Title: T-17170 Resolve proxy settings once so forked RQ work horses on macOS stop crashing at flush by PetrHeinz · Pull Request #49 · logtail/logtail-python

Description: Testing 0.4.1 end to end on macOS: every RQ work horse run by logtail.rq.Worker crashed during its flush, and the job's records were lost while RQ still reported the job as finished, because the flush runs after the status is written. The crash is inside requests' proxy lookup: with no proxy environment variables set, requests asks macOS SystemConfiguration for proxy settings on every request, and CoreFoundation refuses to run in a child forked from a multithreaded process. An RQ worker is always multithreaded at fork time (it runs a pubsub listener thread), so nothing about this is specific to the handler's flush thread, and OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES does not help, since that silences the Objective-C check but not the CoreFoundation one. Linux has no such lookup and is unaffected. The first commit adds the tests and is expected to fail CI. The second commit makes the uploader resolve the proxy settings and the CA bundle from the environment once, when it is created, and pins them on the session with trust_env=False. The fork reset then gives the child a fresh session with the same resolved settings instead of a new uploader, so the child never consults SystemConfiguration. What changes for everyone: proxies (HTTPS_PROXY, NO_PROXY, macOS or Windows system settings) and REQUESTS_CA_BUNDLE / CURL_CA_BUNDLE are read once per handler instead of on every upload, resolved with the same requests helper the per-request path uses a .netrc entry for the ingesting host is no longer applied; it would have replaced the bearer token with basic auth one SystemConfiguration round trip less per upload on macOS Verified on a Mac with the RQ scenario that crashed on 0.4.1: three runs with this change, zero crash reports, every job record delivered, no duplicated worker lines. CI cannot reproduce the crash, the tests pin the resolved settings and their survival across the fork reset. 🤖 Generated with Claude Code

Open Graph Description: Testing 0.4.1 end to end on macOS: every RQ work horse run by logtail.rq.Worker crashed during its flush, and the job's records were lost while RQ still reported the job as finished, because th...

X Description: Testing 0.4.1 end to end on macOS: every RQ work horse run by logtail.rq.Worker crashed during its flush, and the job's records were lost while RQ still reported the job as finished, becaus...

Opengraph URL: https://github.com/logtail/logtail-python/pull/49

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:af0c4ed1-a0f6-bcb5-15a9-19a480f866f5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA00C:145725:4506E:5EB05:6AFBB5C9
html-safe-nonce166c73ffa6d416176d392cd8c8987b9ec7a7630bdc97927d5894335876670642
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDBDOjE0NTcyNTo0NTA2RTo1RUIwNTo2QUZCQjVDOSIsInZpc2l0b3JfaWQiOiI4MjQ1Nzg5NjAxNzg0NjQwOTY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace46a562141b62339f6a14c58a20faec7f76b393418068eb4c93a40f285e380ff
hovercard-subject-tagpull_request:4638217703
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/logtail/logtail-python/pull/49/files
twitter:imagehttps://avatars.githubusercontent.com/u/10008612?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10008612?s=400&v=4
og:image:altTesting 0.4.1 end to end on macOS: every RQ work horse run by logtail.rq.Worker crashed during its flush, and the job's records were lost while RQ still reported the job as finished, because th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/logtail/logtail-python git https://github.com/logtail/logtail-python.git
octolytics-dimension-user_id78922349
octolytics-dimension-user_loginlogtail
octolytics-dimension-repository_id351343852
octolytics-dimension-repository_nwologtail/logtail-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id351343852
octolytics-dimension-repository_network_root_nwologtail/logtail-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/logtail/logtail-python/pull/49/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flogtail%2Flogtail-python%2Fpull%2F49%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flogtail%2Flogtail-python%2Fpull%2F49%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=logtail%2Flogtail-python
Reloadhttps://github.com/logtail/logtail-python/pull/49/files
Reloadhttps://github.com/logtail/logtail-python/pull/49/files
Reloadhttps://github.com/logtail/logtail-python/pull/49/files
logtailhttps://github.com/logtail
logtail-pythonhttps://github.com/logtail/logtail-python
Codehttps://github.com/logtail/logtail-python
Issues1 (1)https://github.com/logtail/logtail-python/issues
Pull requestshttps://github.com/logtail/logtail-python/pulls
Actionshttps://github.com/logtail/logtail-python/actions
Security and qualityhttps://github.com/logtail/logtail-python/security
Insightshttps://github.com/logtail/logtail-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Flogtail%2Flogtail-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flogtail%2Flogtail-python%2Fissues%2Fnew%2Fchoose
PetrHeinzhttps://github.com/PetrHeinz
masterhttps://github.com/logtail/logtail-python/tree/master
claude/t-17170-proxy-settings-oncehttps://github.com/logtail/logtail-python/tree/claude/t-17170-proxy-settings-once
Conversation 0 https://github.com/logtail/logtail-python/pull/49
Commits 2 https://github.com/logtail/logtail-python/pull/49/commits
Checks 13 https://github.com/logtail/logtail-python/pull/49/checks
Files changed https://github.com/logtail/logtail-python/pull/49/files
Please reload this pagehttps://github.com/logtail/logtail-python/pull/49/files
T-17170 Resolve proxy settings once so forked RQ work horses on macOS stop crashing at flush https://github.com/logtail/logtail-python/pull/49/files#top
Show all changes 2 commits https://github.com/logtail/logtail-python/pull/49/files
14fcc47 T-17170 Add failing tests for resolving proxy settings once and keepi… PetrHeinz Sep 25, 2026 https://github.com/logtail/logtail-python/pull/49/commits/14fcc47738ca2878599ae150069b5b61e5511627
6ec0179 T-17170 Resolve proxy settings once and reuse them in a forked child'… PetrHeinz Sep 25, 2026 https://github.com/logtail/logtail-python/pull/49/commits/6ec0179caef29709ed5a8d48cc58c6f806011160
Clear filters https://github.com/logtail/logtail-python/pull/49/files
Please reload this pagehttps://github.com/logtail/logtail-python/pull/49/files
Please reload this pagehttps://github.com/logtail/logtail-python/pull/49/files
handler.py https://github.com/logtail/logtail-python/pull/49/files#diff-a9b0950e5b1ec28ff945c773b108d8b4b6617bfdbee33319a137ec929317e2cd
uploader.py https://github.com/logtail/logtail-python/pull/49/files#diff-c8fe6cf0a3eb9eb4e3f542d9e85697297d1ab58b4555b4391ce2a691d3e5bb51
test_handler.py https://github.com/logtail/logtail-python/pull/49/files#diff-3f86b181ab338949acfc1d27ff975b666acd3f0b016eb4bcce7c79fab09e463b
test_uploader.py https://github.com/logtail/logtail-python/pull/49/files#diff-cb35e5fb7063411c8a2f95833b1f3bc2325ab984c7ba16dec008e0609b3f4e09
logtail/handler.pyhttps://github.com/logtail/logtail-python/pull/49/files#diff-a9b0950e5b1ec28ff945c773b108d8b4b6617bfdbee33319a137ec929317e2cd
View file https://github.com/logtail/logtail-python/blob/6ec0179caef29709ed5a8d48cc58c6f806011160/logtail/handler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/logtail/logtail-python/pull/49/{{ revealButtonHref }}
https://github.com/logtail/logtail-python/pull/49/files#diff-a9b0950e5b1ec28ff945c773b108d8b4b6617bfdbee33319a137ec929317e2cd
https://github.com/logtail/logtail-python/pull/49/files#diff-a9b0950e5b1ec28ff945c773b108d8b4b6617bfdbee33319a137ec929317e2cd
logtail/uploader.pyhttps://github.com/logtail/logtail-python/pull/49/files#diff-c8fe6cf0a3eb9eb4e3f542d9e85697297d1ab58b4555b4391ce2a691d3e5bb51
View file https://github.com/logtail/logtail-python/blob/6ec0179caef29709ed5a8d48cc58c6f806011160/logtail/uploader.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/logtail/logtail-python/pull/49/{{ revealButtonHref }}
https://github.com/logtail/logtail-python/pull/49/files#diff-c8fe6cf0a3eb9eb4e3f542d9e85697297d1ab58b4555b4391ce2a691d3e5bb51
tests/test_handler.pyhttps://github.com/logtail/logtail-python/pull/49/files#diff-3f86b181ab338949acfc1d27ff975b666acd3f0b016eb4bcce7c79fab09e463b
View file https://github.com/logtail/logtail-python/blob/6ec0179caef29709ed5a8d48cc58c6f806011160/tests/test_handler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/logtail/logtail-python/pull/49/{{ revealButtonHref }}
https://github.com/logtail/logtail-python/pull/49/files#diff-3f86b181ab338949acfc1d27ff975b666acd3f0b016eb4bcce7c79fab09e463b
https://github.com/logtail/logtail-python/pull/49/files#diff-3f86b181ab338949acfc1d27ff975b666acd3f0b016eb4bcce7c79fab09e463b
tests/test_uploader.pyhttps://github.com/logtail/logtail-python/pull/49/files#diff-cb35e5fb7063411c8a2f95833b1f3bc2325ab984c7ba16dec008e0609b3f4e09
View file https://github.com/logtail/logtail-python/blob/6ec0179caef29709ed5a8d48cc58c6f806011160/tests/test_uploader.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/logtail/logtail-python/pull/49/{{ revealButtonHref }}
https://github.com/logtail/logtail-python/pull/49/files#diff-cb35e5fb7063411c8a2f95833b1f3bc2325ab984c7ba16dec008e0609b3f4e09
Please reload this pagehttps://github.com/logtail/logtail-python/pull/49/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.