Giter Site home page Giter Site logo

Comments (8)

sskaje avatar sskaje commented on June 26, 2024

How to reproduce and where this fwrite error occurs ?

from mqtt.

w3yyb avatar w3yyb commented on June 26, 2024

PHP Notice: fwrite(): send of 2 bytes failed with errno=32 Broken pipe in /var/www/html/phalconapi/app/library/mqtt/SocketClient.php on line 166

from mqtt.

w3yyb avatar w3yyb commented on June 26, 2024

code:
$cpush = new MQTT('tcp://'.$config->host.':'.$config->port.'/', $pclientid);
$context = stream_context_create();
$cpush->setSocketContext($context);
$cpush->setVersion(MQTT::VERSION_3_1_1);
$cpush->setKeepalive(60);
$cpush->setConnectClean(true);
$connected = $cpush->connect();
$cpush->setRetryTimeout(5);
$myhandler = new \MyPublishHandler();
$pushed = $cpush->publish_async($json->Subject, $content, $config->qos, $config->retain,$msgid);
$myhandler->waitQueue[$pushed['msgid']] = $pushed;
$cpush->setHandler($myhandler);
$cpush->loop();

from mqtt.

w3yyb avatar w3yyb commented on June 26, 2024

and often throw new Exception('WTFFFFFF!!!! '); too. in MQTT.php 1285行.

from mqtt.

nielsenaa avatar nielsenaa commented on June 26, 2024

Hi guys,

i also get thrown at the wtf exception in MQTT.php;
i seems it depends on message specific content char combination being sent on publish (i am using qos2 async)
i pass alot of ESC chars in there and on specific conditions, exception fires up.. i doesnt seem to be affected by overall payload length / "size".. can reproduce but cannot debug for sure !

from mqtt.

sskaje avatar sskaje commented on June 26, 2024

@nielsenaa please give me a copy of your message

from mqtt.

nielsenaa avatar nielsenaa commented on June 26, 2024

from mqtt.

nielsenaa avatar nielsenaa commented on June 26, 2024

care to chat ? @nielsenaa on skype

from mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.