Skip to content

Connection failed with error aws-c-io: AWS_IO_SOCKET_TIMEOUT, socket operation timed out #366

@vermaasingh

Description

@vermaasingh

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Known Issue

  • I'm using ATS data type endpoint: the endpoint should look like <prefix>-ats.iot.<region>.amazonaws.com

Describe the bug
My MQTT client device was connected to IOTCore and data was getting published continuously, but after around an hour I started receiving this error and my mqtt client could not connect back to the IOTcore anymore.

Platform/OS/Device
What are you running the sdk on?
Debian linux platform

SDK version number
Example: aws-iot-device-sdk-cpp-v2

To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code)

  1. establish connect from mqtt client to AWS.
  2. Keep publishing data continuously.
  3. Connection disconnects with socket operation timed out error, and does not connect again.

Expected behavior
A clear and concise description of what you expected to happen.
Once mqtt connection is established then there should not be a timeout based disconnection. There should not be a timeout for the existing connection.

Logs/output
If applicable, add logs or error output.
Connection failed with error aws-c-io: AWS_IO_SOCKET_TIMEOUT, socket operation timed out

REMEMBER TO SANITIZE YOUR PERSONAL INFO

ApiHandle::InitializeLogging(...)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.closed-for-stalenessresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 2 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions