realgam3 / requests-raw

Use requests to send HTTP raw sockets (To Test RFC Compliance)
Apache License 2.0
20 stars 1 forks source link

I found an error, and when I have mounted an adapter, it shows the following message #3

Closed cn-kali-team closed 3 years ago

cn-kali-team commented 3 years ago

The ssl3httpadapter is a custom adapter

session = requests.session()
session.mount('https://', Ssl3HttpAdapter())
cn-kali-team commented 3 years ago

After I delete the automatic monkey patch, it works successfully

realgam3 commented 3 years ago

After I delete the automatic monkey patch, it works successfully

Thank you :) I will check it out and fix it.

Edit: Do you have script that reproduce the issue? I tried to reproduce it but it doesn't work

import ssl
import requests_raw as requests
from requests.adapters import HTTPAdapter, PoolManager

class TLSHttpAdapter(HTTPAdapter):
    def init_poolmanager(self, connections, maxsize, block=False):
        self.poolmanager = PoolManager(num_pools=connections,
                                       maxsize=maxsize,
                                       block=block,
                                       ssl_version=ssl.PROTOCOL_TLS)

session = requests.session()
session.mount('https://', TLSHttpAdapter())
realgam3 commented 3 years ago

@cn-kali-team can you help me with the reproduction?

cn-kali-team commented 3 years ago

@cn-kali-team can you help me with the reproduction?

Sorry, I can't reproduce the problem now. Maybe there is a bug in my code,

realgam3 commented 3 years ago

thank you :) if it pops again, reopen the issue

@cn-kali-team can you help me with the reproduction?

Sorry, I can't reproduce the problem now. Maybe there is a bug in my code,