pyca / pyca/pyopenssl

Socket timeout error when uploading file more than 16kb

Open
#1,019 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
944
Forks
440
Avg merge
1d 6h
Merged PRs (30d)
6

Description

File "/usr/lib/python3.6/site-packages/cheroot/server.py", line 377, in read
data = self.rfile.read(size)
File "/usr/lib/python3.6/site-packages/cheroot/makefile.py", line 431, in read
val = self._safe_call(True, super().read, *args, **kwargs)
File "/usr/lib/python3.6/site-packages/cheroot/ssl/pyopenssl.py", line 131, in _safe_call
raise socket.timeout('timed out')
socket.timeout: timed out

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing an upload larger than 16 KB and trace the read path shown in cheroot/server.py, cheroot/makefile.py, and cheroot/ssl/pyopenssl.py. Determine why the socket timeout occurs during the upload and verify the behavior with a focused regression test or reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.