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

receive()数据接收是否有长度限制 #13

Open
yangex opened this issue May 11, 2020 · 0 comments
Open

receive()数据接收是否有长度限制 #13

yangex opened this issue May 11, 2020 · 0 comments

Comments

@yangex
Copy link

yangex commented May 11, 2020

当数据长度比较长时,数据只能获取前面一部分,这个有哪里需要设置吗
class Converse:
"""Responsible for communication
between client and server
"""
def init(self, reader: object, writer: object, maxsize: int = 2**16):
self.reader = reader
self.writer = writer
self.message_queue = Queue(maxsize=maxsize)
self.frame = Frames(self.reader, self.writer)
看到您写的这个maxsize是用来限制数据长度的对吗,为什么加这样的限制呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant