Kitura / Kitura-WebSocket

WebSocket support for Kitura
Apache License 2.0
68 stars 30 forks source link

[websocket-nio]Fix for empty buffers #72

Closed nethraravindran closed 5 years ago

nethraravindran commented 5 years ago

The buffer data is lost when the frames are sent as fragments. This is because the data that are read are written back to local buffer which loses its scope and results in loss of data

guard var message = message else { return }                      
message.write(buffer: &data)