Comments (8)
How to reproduce and where this fwrite error occurs ?
from mqtt.
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.
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.
and often throw new Exception('WTFFFFFF!!!! '); too. in MQTT.php 1285行.
from mqtt.
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.
@nielsenaa please give me a copy of your message
from mqtt.
from mqtt.
care to chat ? @nielsenaa on skype
from mqtt.
Related Issues (20)
- 参数暗示 参数类型好像有问题 HOT 5
- Enforce TLS v1.2 documentation HOT 2
- Unknown error if the client is not authorized to connect HOT 2
- Exception thrown when a PUBLISH message has an particular length HOT 2
- message content trunkated on publish, missing part sent on next publish and so on..
- WTFFF! (Exception PHP Notice: fwrite(): send of x bytes failed with errno=11 Resource temporarily unavailable in ..ocketClient.php on line 166) [FIX] HOT 2
- A typo in the source code
- Support TLS/SSL connections? HOT 5
- Header Timestamp always 1970-01-01T01:00:00+01:00 HOT 2
- Release 2.0?
- message_read throw Exception
- MQTT 5.0 HOT 2
- last update on packagist.org is 2018-03-16 HOT 2
- How I can get client id in subscribe.php? HOT 1
- How to use puback()?
- Bad check for multiple topic subscribe/unsubscribe.
- Unable to Subscribe when Published HOT 6
- do_publish is public : is it wanted ? HOT 2
- endless ping sent if pipe breaks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqtt.