Thanks to visit codestin.com
Credit goes to github.com

Skip to content

imaps connection fails with error in rustls_connection_read #10457

@fchandur

Description

@fchandur

I did this

$ ./curl --trace log.txt --cacert /etc/ssl/certs/ca-certificates.crt imaps://imap.gmail.com
curl: (26) error in rustls_connection_read: 7010

I expected the following

connection to succeed

curl/libcurl version

$ ./curl --version
curl 7.87.1-DEV (x86_64-unknown-linux-gnu) libcurl/7.87.1-DEV rustls-ffi/0.9.2-alpha1/rustls/0.20.7 zlib/1.2.11 libssh2/1.9.0_DEV
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile libz SSL threadsafe UnixSockets

operating system

Linux winxps 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

trace

== Info: Trying 142.250.123.108:993...
== Info: Connected to imap.gmail.com (142.250.123.108) port 993 (#0)
== Info: rustls_connection wants us to write_tls.
== Info: Curl_socket_check: reading would block
== Info: rustls_connection wants us to read_tls.
== Info: Done handshaking
== Info: ALPN: server did not agree on a protocol. Uses default.
== Info: error in rustls_connection_read: 7010
== Info: Closing connection 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions