Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问什么时候可以支持超过10M的包大小,以及什么时候会发新版本 #157

Open
peter-up opened this issue Mar 9, 2021 · 12 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested

Comments

@peter-up
Copy link

peter-up commented Mar 9, 2021

个人感觉Java项目没有其他语言投入多,感谢支持。

@ETZhangSX ETZhangSX added enhancement New feature or request good first issue Good for newcomers question Further information is requested labels Mar 9, 2021
@ETZhangSX ETZhangSX assigned ETZhangSX and TimmyYu and unassigned ETZhangSX Mar 9, 2021
@TimmyYu
Copy link
Contributor

TimmyYu commented Mar 30, 2021

可配置的包功能 会在2.0的版本中可供使用。但是不会放到1.7的版本中。

@tangj1992
Copy link

自己重写TarsCodec去掉包大小限制

@peter-up
Copy link
Author

自己重写TarsCodec去掉包大小限制

需要fork一个tarsjava版本

@tangj1992
Copy link

不需要,自己重写TarsCodec,然后在servant的注解上使用自己的codec就可以了

@tangj1992
Copy link

还有prx的注解

@tangj1992
Copy link

限制是在TarsCodec里的encodeRequest方法里

@peter-up
Copy link
Author

非常感谢 @tangj1992 ,我这边试试

@lvchangcong
Copy link

@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain

@tangj1992
Copy link

@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain

我看到TarsServantRequest里用的是TarsCodec里的decodeResquestBody,没有用到decodeRequest啊。如果会用到decodeRequest,那就没法了。

@lvchangcong
Copy link

@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain

我看到TarsServantRequest里用的是TarsCodec里的decodeResquestBody,没有用到decodeRequest啊。如果会用到decodeRequest,那就没法了。

((TarsCodec) this.session.getProtocolFactory().getDecoder()).decodeRequestBody(this); 执行到这里会提示我重写的类没办法又转换回TarsCodec

@tangj1992
Copy link

@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain

我看到TarsServantRequest里用的是TarsCodec里的decodeResquestBody,没有用到decodeRequest啊。如果会用到decodeRequest,那就没法了。

((TarsCodec) this.session.getProtocolFactory().getDecoder()).decodeRequestBody(this); 执行到这里会提示我重写的类没办法又转换回TarsCodec

子类不能转成父类?你是不是没继承TarsCodec?

@lvchangcong
Copy link

@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain

我看到TarsServantRequest里用的是TarsCodec里的decodeResquestBody,没有用到decodeRequest啊。如果会用到decodeRequest,那就没法了。

((TarsCodec) this.session.getProtocolFactory().getDecoder()).decodeRequestBody(this); 执行到这里会提示我重写的类没办法又转换回TarsCodec

子类不能转成父类?你是不是没继承TarsCodec?

非常感谢,问题已解决,我写成继承Codec了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants