Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SSLV3_ALERT_HANDSHAKE_FAILURE when using private gateway #1470

Copy link
Copy link
@OS-anasantos

Description

@OS-anasantos
Issue body actions

Initial Checks

Description

I'm calling an MCP "https://mcp.deepwiki.com/mcp" through a private gateway. Because of that, the URL I'm calling is "https://secure-gateway:8081", so far so good, but unfortunately, I get _"ConnectError('[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (ssl.c:1000)')".

Unfortunately, in _handle_post_request, even if I send the headers "X-Forwarded-Host", they are ignored. It seems that "sni_hostname" is only retrieved by using extensions which are not present here.

Is this expected, or is this an issue?

Example Code

Python & MCP Python SDK

Python: 3.12
MCP Python: 1.16.0
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Moderate issues affecting some users, edge cases, potentially valuable featureModerate issues affecting some users, edge cases, potentially valuable featurebugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.