Giter Site home page Giter Site logo

Comments (13)

1193829006 avatar 1193829006 commented on April 29, 2024

是因为这个handler是无状态的吗?

from netty-learning-example.

sanshengshui avatar sanshengshui commented on April 29, 2024

是这样的,那个类只用作消息类型的判断和处理异常情况.没有拥有状态.:smiling_imp:
你说的对,只有确保ChannelHandler是线程安全的,才能使用@sharable. 👍
只有怎么判断和保证类的线程安全,需要我们开发人员自己的知识积累和判断了 👏

from netty-learning-example.

1193829006 avatar 1193829006 commented on April 29, 2024

感谢感谢

from netty-learning-example.

1193829006 avatar 1193829006 commented on April 29, 2024

大佬 又有问题了 订阅跟发送qos都为2 订阅端接收不到消息是为什么

from netty-learning-example.

1193829006 avatar 1193829006 commented on April 29, 2024

如果订阅者的qos<1 就能收到消息,这是为什么

from netty-learning-example.

sanshengshui avatar sanshengshui commented on April 29, 2024

这个问题,我找了一晚上,没找出来!:crystal_ball: 等我振作精神,再找找 :dart:

from netty-learning-example.

1193829006 avatar 1193829006 commented on April 29, 2024

哈哈 我也找了两天了,也没找到

from netty-learning-example.

1193829006 avatar 1193829006 commented on April 29, 2024

我大概知道什么原因了,现在太晚了,对照一下mqtt的qos2的流程,再对比一下mqtt的级别码 能发现问题

from netty-learning-example.

sanshengshui avatar sanshengshui commented on April 29, 2024

那你测试,测试一下.提交一个pull request吧!

from netty-learning-example.

1193829006 avatar 1193829006 commented on April 29, 2024

稍等 在上班 估计要明天

from netty-learning-example.

sanshengshui avatar sanshengshui commented on April 29, 2024

🍻

from netty-learning-example.

1193829006 avatar 1193829006 commented on April 29, 2024

大佬 我错了 应该是id重复的问题 不好意思最近有点忙
Publish 类下的 sendPublishMessage 方法 qos2 那个判断下面 new MqttPublishVariableHeader(topic, )这里的消息 重复了 我是抓了包之后发现 这条消息因为跟发送端的一直 好像被去重了,把这个改成其他的数字 就可以了 不好意思啊 最近有点忙 没怎么有时间看

from netty-learning-example.

sanshengshui avatar sanshengshui commented on April 29, 2024

你真是一个机灵而又认真的boy啊!给你一颗心 :heartpulse: 都想给你颁奖了!:sparkles:

from netty-learning-example.

Related Issues (9)

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.