Skip to content

Memory leak when reciving FIN on MQTT_connect (CA-364) #248

@damian-kurek-wizzdev

Description

@damian-kurek-wizzdev

Checklist

  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

No memory leak

Actual behavior (suspected bug)

I run following test loop

  1. Connect to TLS port 443
  2. Connect to MQTT
  3. SLEEP
  4. Disconnect MQTT
  5. Disconnect TLS
  6. Sleep

Sometimes I get FIN from the server when connecting to the MQTT server. When I get FIN, I disconnect TLS, but I still get a 200-byte memory leak every time it happens

memory_leak_on_fin.txt

Error logs or terminal output

Steps to reproduce the behavior

As described above, you can run into AWS throttling when connecting to MQTT than you will get FIN

Project release version

Not sure, but I have coreMQTT 1.2

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Linux

Operating system version

Ubuntu 20.04

Shell

Bash

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions