Git Product home page Git Product logo

Comments (5)

dhhua avatar dhhua commented on May 18, 2024

http协议不应该是
@OverRide
public boolean isCoexistence() {
return true;
}
的吧

from starlight.

wenweihu86 avatar wenweihu86 commented on May 18, 2024

@dhhua http协议是可以和已存在的其他协议共存的,比如可用于brpc标准协议和http协议并存。
你出现的这个错误,可以给下详细的复现方法或者代码吗?

from starlight.

dhhua avatar dhhua commented on May 18, 2024

@wenweihu86 我是写了自定义协议,而且要和brpc协议并存,原本写的优先级比较低,接收的包在httpProtocol就报错了,还没到自定义协议解包,现在我是调高优先级解决了,建议以后可以配置要使用的protocol,现在只能配一个主协议,配了就只能用单协议了,不过就是可以用多端口解决,多端口注册服务对我这边不太好

from starlight.

wenweihu86 avatar wenweihu86 commented on May 18, 2024

@dhhua 在httpProtocol报错了,HttpRpcProtocol.decode返回BadSchema的呀。
支持配置多个协议,确实会有这个需求,后续会支持。

from starlight.

dhhua avatar dhhua commented on May 18, 2024

@wenweihu86 BrpcHttpObjectDecoder在decode的时候用了HttpObjectDecoder,HttpObjectDecoder把异常直接捕获返回了bad-request了,所以不会抛出BadSchema

from starlight.

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.