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
610add1f
Commit
610add1f
authored
5 years ago
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send SNI
parent
655510ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
src/h2load.cc
src/h2load.cc
+15
-13
No files found.
src/h2load.cc
View file @
610add1f
...
...
@@ -512,27 +512,29 @@ int Client::make_socket(addrinfo *addr) {
std
::
cerr
<<
"quic_init failed"
<<
std
::
endl
;
return
-
1
;
}
return
0
;
}
fd
=
util
::
create_nonblock_socket
(
addr
->
ai_family
);
if
(
fd
==
-
1
)
{
return
-
1
;
}
if
(
config
.
scheme
==
"https"
)
{
if
(
!
ssl
)
{
ssl
=
SSL_new
(
worker
->
ssl_ctx
);
}
else
{
fd
=
util
::
create_nonblock_socket
(
addr
->
ai_family
);
if
(
fd
==
-
1
)
{
return
-
1
;
}
if
(
config
.
scheme
==
"https"
)
{
if
(
!
ssl
)
{
ssl
=
SSL_new
(
worker
->
ssl_ctx
);
}
SSL_set_fd
(
ssl
,
fd
);
SSL_set_connect_state
(
ssl
);
SSL_set_fd
(
ssl
,
fd
);
SSL_set_connect_state
(
ssl
);
}
}
if
(
ssl
&&
!
util
::
numeric_host
(
config
.
host
.
c_str
()))
{
SSL_set_tlsext_host_name
(
ssl
,
config
.
host
.
c_str
());
}
if
(
config
.
is_quic
())
{
return
0
;
}
rv
=
::
connect
(
fd
,
addr
->
ai_addr
,
addr
->
ai_addrlen
);
if
(
rv
!=
0
&&
errno
!=
EINPROGRESS
)
{
if
(
ssl
)
{
...
...
This diff is collapsed.
Click to expand it.
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