Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
python
Commits
57520aaf
Commit
57520aaf
authored
Sep 25, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test_httplib and test_urllib2_localnet
parent
9435180d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
Makefile
Makefile
+1
-0
Python-2.7.16-OpenSSL_1.1.1_test_fix.patch
Python-2.7.16-OpenSSL_1.1.1_test_fix.patch
+16
-0
No files found.
Makefile
View file @
57520aaf
target all
:
LC_ALL=$(SYSTEM_LOCALE)
target all
:
LC_ALL=$(SYSTEM_LOCALE)
all
:
all
:
tar
xf Python-2.7.16.tar.xz
tar
xf Python-2.7.16.tar.xz
patch
-Np1
-d
Python-2.7.16 < Python-2.7.16-OpenSSL_1.1.1_test_fix.patch
cd
Python-2.7.16
&&
sed
-i
'/#SSL/,+3 s/^#//'
Modules/Setup.dist
cd
Python-2.7.16
&&
sed
-i
'/#SSL/,+3 s/^#//'
Modules/Setup.dist
cd
Python-2.7.16
&&
./configure
--build
=
$(CLFS_TARGET)
--prefix
=
/usr
--enable-shared
--with-system-expat
--with-system-ffi
--with-ensurepip
=
yes
--enable-unicode
=
ucs4
--enable-optimizations
cd
Python-2.7.16
&&
./configure
--build
=
$(CLFS_TARGET)
--prefix
=
/usr
--enable-shared
--with-system-expat
--with-system-ffi
--with-ensurepip
=
yes
--enable-unicode
=
ucs4
--enable-optimizations
$(MAKE)
-C
Python-2.7.16
$(MAKE)
-C
Python-2.7.16
...
...
Python-2.7.16-OpenSSL_1.1.1_test_fix.patch
0 → 100644
View file @
57520aaf
diff -uNr Python-2.7.16/Lib/BaseHTTPServer.py Python-2.7.16-OpenSSL_1.1.1_test_fix/Lib/BaseHTTPServer.py
--- Python-2.7.16/Lib/BaseHTTPServer.py 2019-03-03 04:47:42.000000000 +1030
+++ Python-2.7.16-OpenSSL_1.1.1_test_fix/Lib/BaseHTTPServer.py 2019-09-25 03:54:53.146421649 +0930
@@ -332,6 +332,12 @@
self.log_error("Request timed out: %r", e)
self.close_connection = 1
return
+ except socket.error as exc:
+ # Using ssl and OpenSSL 1.1.1, sometimes readline() can fail
+ # with error(104, 'Connection reset by peer')
+ self.close_connection = 1
+ exc = None
+ return
def handle(self):
"""Handle multiple requests if necessary."""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment