AlexStocks / getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
888 stars 186 forks source link

session and connection recv method byte array limit 4096 bytes #46

Closed windyrjc closed 4 years ago

windyrjc commented 4 years ago

Hello,I have some questions about net.reader.read method in "transport/session.go" and "transport/connection.go" , when you send a tcp pkg,getty how to recognize the length of this tcp pkg?and that if the recv pkg > 4096 bytes ? how does getty to handle such situation?