socket.receive is freezing my app

I want to receive a udp packet with socket.receive() but it completely freeze my app. Is there any way to keep the app unfreezed?

Can you provide us more information about what’s happening?

What version of Corona SDK are you using?

Can you provide the socket code you’re using?

Are there any error messages in your console log?

Thanks

Rob

I’m using version 2016.2830 of Corona.

It happens when i try to receive a packet with socket.receive of LuaSocket, it freeze for the timeout seconds and then it backs normal.

Threre aren’t any errors or messages.

It could be a problem on the server you’re connecting to. But if you don’t mind, get the latest daily build and give it a try. We updated our Lua socket library support several daily builds ago to a version that works on IPv6. If you’re planning to deploy to iOS you will have to have this support. It might help with your problem, it might not but it’s worth a shot.

Rob

But the LuaSocket docs tell it’s normal. It isn’t a server problem. I was asking how can i bypass this.

Set the timeout to 0 and start a timer on a short interval to receive the data. You’ll have to implement the timeout yourself by keeping track of how many times your timer has triggered.

Can you provide us more information about what’s happening?

What version of Corona SDK are you using?

Can you provide the socket code you’re using?

Are there any error messages in your console log?

Thanks

Rob

I’m using version 2016.2830 of Corona.

It happens when i try to receive a packet with socket.receive of LuaSocket, it freeze for the timeout seconds and then it backs normal.

Threre aren’t any errors or messages.

It could be a problem on the server you’re connecting to. But if you don’t mind, get the latest daily build and give it a try. We updated our Lua socket library support several daily builds ago to a version that works on IPv6. If you’re planning to deploy to iOS you will have to have this support. It might help with your problem, it might not but it’s worth a shot.

Rob

But the LuaSocket docs tell it’s normal. It isn’t a server problem. I was asking how can i bypass this.

Set the timeout to 0 and start a timer on a short interval to receive the data. You’ll have to implement the timeout yourself by keeping track of how many times your timer has triggered.