Skip to content

getting error as "**read would block**" while reading from socket. #608

Answered by bretambrose
dhejha asked this question in Q&A
Discussion options

You must be logged in to vote

As it stands, the socket snippets above aren't directly related to secure tunnels. If I had to speculate I'm guessing maybe you have a tunnel established in another process (or the current one) and are then port forwarding from localhost::m_port to the tunnel? If that guess is correct, then the log is from the local secure tunnel process?

More details on the exact relationship between all the actors in what you're doing would be helpful (otherwise we have to speculate like above which is error prone).

Some additional commentary:

  • aws_socket_write follows the standard async pattern we use where callbacks are not invoked if the synchronous part fails
  • I would step into aws_socket_write and f…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jmklix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants