python-hyper / python-hyper/h2
Eventlet example, use hyper client connect raise openssl error
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 187
- PR merge metrics
- No merged PRs in 30d
Description
exception is:
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/eventlet/greenpool.py", line 88, in _spawn_n_impl
func(*args, **kwargs)
File "origin_eventlet.py", line 31, in run_forever
self.sock.sendall(self.conn.data_to_send())
File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/eventlet/green/OpenSSL/SSL.py", line 101, in sendall
tail = self.send(data)
File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/eventlet/green/OpenSSL/SSL.py", line 81, in write
return self.fd.write(data)
File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1256, in send
self._raise_ssl_error(self._ssl, result)
File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1174, in _raise_ssl_error
_raise_current_error()
File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_record', 'http request')]
client code:
from hyper import HTTPConnection
c = HTTPConnection('localhost:8090')
first = c.request('GET', '/', headers={'key': 'value'})
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the origin_eventlet.py run_forever traceback and the hyper HTTPConnection('localhost:8090') example, then reproduce the OpenSSL.SSL.Error. Compare the client connection and the endpoint setup shown in the report; done means identifying the cause and documenting or correcting the example so the request completes without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100