Comments (13)
是因为这个handler是无状态的吗?
from netty-learning-example.
是这样的,那个类只用作消息类型的判断和处理异常情况.没有拥有状态.:smiling_imp:
你说的对,只有确保ChannelHandler是线程安全的,才能使用@sharable. 👍
只有怎么判断和保证类的线程安全,需要我们开发人员自己的知识积累和判断了 👏
from netty-learning-example.
感谢感谢
from netty-learning-example.
大佬 又有问题了 订阅跟发送qos都为2 订阅端接收不到消息是为什么
from netty-learning-example.
如果订阅者的qos<1 就能收到消息,这是为什么
from netty-learning-example.
这个问题,我找了一晚上,没找出来!:crystal_ball: 等我振作精神,再找找 :dart:
from netty-learning-example.
哈哈 我也找了两天了,也没找到
from netty-learning-example.
我大概知道什么原因了,现在太晚了,对照一下mqtt的qos2的流程,再对比一下mqtt的级别码 能发现问题
from netty-learning-example.
那你测试,测试一下.提交一个pull request吧!
from netty-learning-example.
稍等 在上班 估计要明天
from netty-learning-example.
🍻
from netty-learning-example.
大佬 我错了 应该是id重复的问题 不好意思最近有点忙
Publish 类下的 sendPublishMessage 方法 qos2 那个判断下面 new MqttPublishVariableHeader(topic, )这里的消息 重复了 我是抓了包之后发现 这条消息因为跟发送端的一直 好像被去重了,把这个改成其他的数字 就可以了 不好意思啊 最近有点忙 没怎么有时间看
from netty-learning-example.
你真是一个机灵而又认真的boy啊!给你一颗心 :heartpulse: 都想给你颁奖了!:sparkles:
from netty-learning-example.
Related Issues (9)
- 请教问题
- 问个弱弱的问题? HOT 1
- mqtt connect报文
- 问个弱弱的问题? HOT 1
- 开启netty心跳的时候,mqtt客户端出现连接丢失的情况
- 请问现在支持SSL/TLS吗? HOT 5
- 请问netty+mqtt服务端集群方案如何实现 HOT 2
- helloworld写法有些问题 HOT 4
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 netty-learning-example.