SwiftSocket icon indicating copy to clipboard operation
SwiftSocket copied to clipboard

maximum send size

Open gaetanokent opened this issue 7 years ago • 2 comments

I'm using SwiftSocket to send data from iOS app to Python server. If I use file having small dimension it works quite good and I receive properly the file on Python side. But if the size of the file to send exceeds 96Kb, the process fails. Any idea about why that happens?

I've tried with an image in .zip format. I encode it as base64 and send it using:

client.send(data: strBase64Data)

For small images it works. If the size is more than 96Kb the transfer doesn't succede. Could that be a problem on Python side or a setting on Swift? Thanks!

gaetanokent avatar Nov 03 '17 14:11 gaetanokent

I'm having the same issue, but with a 132kb limit when sending raw bytes. Someone on Stack Overflow posted about the same issue with SwiftSocket, but there were no responses.

Any idea on how to increase the limit?

ketz avatar Jun 28 '18 15:06 ketz

I am also having this issue. Can someone suggest another socket to use or a workaround?

benwagucla avatar Jan 31 '19 20:01 benwagucla