Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 buffer as byte[1024 * 4] from websocket message, reason behind?

views
     
flashang
post Jun 3 2022, 12:49 AM

Casual
***
Junior Member
355 posts

Joined: Aug 2021


QUOTE(scar_face008 @ Jun 2 2022, 07:15 PM)
max size is 1mb, probably by standard implementation.
dunno why *4, probably to accomodate client as most are using that setup.

if you're response size is fixed, just change to accomodate it. otherwise if response size is unknown, just leave to default?
*
byte[1024 * 4] is 4kb for data buffer, which should be enough for most cases.
you could use different size, it really depends on how you transfer your data.

smile.gif



 

Change to:
| Lo-Fi Version
0.0143sec    0.55    7 queries    GZIP Disabled
Time is now: 24th December 2025 - 07:44 AM