Socket.IO-Client-Swift
Socket.IO-Client-Swift copied to clipboard
Error: can't allocate region
Hello!
First time I receive from server long gzipped string, size of string about 30KB - and all fine, but if I request this big string again then it fails with error listed below:
WebSocket.swift 344: processInputStream() WebSocket.swift 391: dequeueInput() WebSocket.swift 411: processRawMessage(buffer, bufferLen: length) WebSocket.swift 536: let isFin = (FinMask & buffer[0])
It fails on this line with message: (1208,0x1f197000) malloc: *** mach_vm_map(size=1941504) failed (error code=3) *** error: can't allocate region
How to prevent this problem? Reconnect doesn't solve his issue.
This'll probably be fixed in a Websocket patch
Hi guys any update on this issue? had the same error.