Skip to content

Transfering data over socket failed: Sending data over the socket failed. Has it been closed? #8

@radu-bethub

Description

@radu-bethub

Hello,

I'm getting randomly the below error:

local.ERROR: [65] Transfering data over socket failed: Sending data over the socket failed. Has it been closed? {"exception":"[object] (PhpMqtt\Client\Exceptions\DataTransferException(code: 65): [65] Transfering data over socket failed: Sending data over the socket failed. Has it been closed? at /var/www/html/vendor/php-mqtt/client/src/MQTTClient.php:1302)

I'm using mosquitto mqtt server on centos 7. both services are on the same server (php + mosquitto).

Connections settings:

$settings = new ConnectionSettings(
    $qualityOfService = 1,
    $retain = false,
    $blockSocket = false,
    $socketTimeout = 30,
    $keepAlive = 10,
    $resendTimeout = 10,
    $lastWillTopic = null,
    $lastWillMessage = null
);

Thanks in advance.

Regards,

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