-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Error in PubHttpClient.send (issue 12581) error: HandshakeException: Connection terminated during handshake #14646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Couple of questions. Is this a reoccurring or sporadic error? Is there any stack trace available with the error? The error "Connection terminated during handshake" says that the underlying socket connection was disconnected during the initial handshake. In this case it seems to be the server which closed the connection. Unless this is a communication issue it could be some protocol issue. An secure socket connection is typically silently closed by the server if the data coming from the client is not valid |
This comment was originally written by @stevehsu77 I got same problem. it seems that SSL library lose some ciphers. |
This comment was originally written by [email protected] I am an NSS developer. I looked at the info in It shows that Dart is using only the cipher suites enabled by NSS by default. Søren also emailed me the code Darts uses to initialize NSS. I suggest the
|
This comment was originally written by [email protected] I found that my previous comment may be a little unclear. I said: Dart should copy the following code from Chromium to enable What I meant is: Dart should copy the following code from Chromium to enable |
This comment was originally written by @stevehsu77 i found the code here 589: status = SSL_OptionSetDefault(SSL_ENABLE_TLS, PR_TRUE); 659: SSLVersionRange vrange; so how to enable more ciphers? |
I can fix this, based on the help from wtc (thanks). Set owner to @whesse. |
This comment was originally written by @filiph Just in case this helps in any way, I'm attaching pub --trace 'get' output. I had this error while in an airport, so there probably was something fishy with the network, if it worked at all. Nevertheless, it probably should've failed more gracefully. ====== Resolving dependencies...Error in PubHttpClient.send (issue #12581) error: HandshakeException: Handshake error in client (OS Error: Unable to communicate securely with peer: requested domain name does not match the server's certificate., errno = -12276) Error in PubHttpClient.send (issue #12581) error: HandshakeException: Handshake error in client (OS Error: Unable to communicate securely with peer: requested domain name does not match the server's certificate., errno = -12276) Handshake error in client ---- Log transcript ---- ---- End log transcript ---- |
Issue #15286 has been merged into this issue. |
Issue #14171 has been merged into this issue. |
Added Started label. |
This problem should be fixed in revision 30897, which adds more ciphers to SecureSocket. If this error shows up again, please file a new bug with area=Pub, and we'll track down the new cause. Added Fixed label. |
Removed Area-IO label. |
This issue was originally filed by [email protected]
What steps will reproduce the problem?
pub get
What is the expected output? What do you see instead?
Need to install the dependencies
Error in PubHttpClient.send (issue #12581) error: HandshakeException: Connection terminated during handshake
What version of the product are you using? On what operating system?
Pub 0.8.5+1.r28990
The text was updated successfully, but these errors were encountered: