Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
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
Libraries
nghttp2
Commits
1c521995
Commit
1c521995
authored
Aug 24, 2012
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python: add SSL options. Fix duplicated headers.
parent
7ce24fc1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
python/spdylay.pyx
python/spdylay.pyx
+7
-4
No files found.
python/spdylay.pyx
View file @
1c521995
...
...
@@ -1174,7 +1174,7 @@ try:
elif
k
==
':host'
:
self
.
host
=
v
else
:
self
.
headers
.
extend
(
headers
)
self
.
headers
.
append
((
k
,
v
)
)
class
SessionCtrl
:
def
__init__
(
self
,
handler
,
sock
):
...
...
@@ -1446,15 +1446,18 @@ try:
class
ThreadedSPDYServer
(
socketserver
.
ThreadingMixIn
,
socketserver
.
TCPServer
):
def
__init__
(
self
,
svaddr
,
handler
,
cert_file
,
key_file
):
def
__init__
(
self
,
server_address
,
RequestHandlerCalss
,
cert_file
,
key_file
):
self
.
allow_reuse_address
=
True
self
.
ctx
=
ssl
.
SSLContext
(
ssl
.
PROTOCOL_SSLv23
)
# TODO Add SSL option here
self
.
ctx
.
options
=
ssl
.
OP_ALL
|
ssl
.
OP_NO_SSLv2
|
\
ssl
.
OP_NO_COMPRESSION
self
.
ctx
.
load_cert_chain
(
cert_file
,
key_file
)
self
.
ctx
.
set_npn_protocols
([
'spdy/3'
,
'spdy/2'
])
socketserver
.
TCPServer
.
__init__
(
self
,
svaddr
,
handler
)
socketserver
.
TCPServer
.
__init__
(
self
,
server_address
,
RequestHandlerCalss
)
def
start
(
self
,
daemon
=
False
):
server_thread
=
threading
.
Thread
(
target
=
self
.
serve_forever
)
...
...
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