Closed suffz closed 1 year ago
Any details? Reproducer, version, whatever.
if payload, err := ws.ReadFrame(wsconn); err == nil {
Once the payload.Payload gets to around 4096 it maxs out and no new data is sent through afaik. im jw cause im using this for a websocket and the data can get up there and some of it is being cut off.
@suffz I think we need a real test case that can be used to reproduce the problem. Otherwise there definitely isn't going to be a workaround
Well, the max bytes I can receive from the ws stream appears to be 4096 and any data after that gets cut off completely.
The data goes beyond 4096 but because I can't retrieve the full data it sends incomplete responses.
Aren't you experiencing https://pkg.go.dev/github.com/gobwas/ws#DefaultClientReadBufferSize ?
Most likely but I can't increase it because its a const.
Yeah, but it's just a default, the real usage is here https://github.com/gobwas/ws/blob/fe40e5d87b2c7a74c6a202027ed76789fb3647fd/dialer.go#L58
Try to set higher value to these fields, this should help.
I could try, but I'm making my own ws connection and using that tls conn with this library to send / recv payloads.
The built in dialer wouldn't do much in this regard no?
Nvm, just saw the wrapconn func, i can try It out thanks.
Please, share the results.
Alright, will do some tests after work.
looking for a work around.