I'm wrestling with a strange behavior on my first App using sockets. In a nut shell, I'm writing what I think is a simple client/server app for a round-robin Tournament. I a nut shell, there is a Head judge system (server) receiving results and scoring information from up to 6 arenas (clients).
Each arena is to have a scoring App (laptops and iPads) that communicates the results to the Head Judge system via a socket at the conclusion of each race (win 3 heats of 5). I'm using non-blocking sockets and have developed a simple protocol to communicate the data from the clients to the server.
Of course the Tournament is coming up and I'm stuck spinning my wheels with the socket communications.
What appears to be happening is the Judge's system (Macbook late 2014 OS X 10.11 system), after a period of time OR a particular event (I can not figure out what is the trigger), seems to pause socket communications.
Here's the weird part. If I move the mouse back and forth on the judges machine, all the queued up messages begin to flow again and are handled and responded to as if there is nothing wrong.
However, subsequent socket calls stall until the mouse is moved again. Behavior appears in IDE and as Standalone. I've tested with LC Indy 7.0.6, 7.1.1, 7.1.2RC2 and all are the same results.
This behavior continues until I restart the App on the server (although most of the time a resetAll does appear to fix it as well but not always).
Client/Server on same IP does not appear to exhibit this behavior and all works well.
For troubleshooting, I used the exact same Macbook for the server rebooted to Windows 10. No issues at all (IDE & standalone), ever, as far as I can tell. So I'm concluding it a Mac OS X only socket issue??? -- or my coding or something else.
I am currently testing with other known "good" socket apps (downloaded socket examples), and while I'm not 100% convinced, it appears they also exhibit this same behavior.
So my question is this, is there something I need to do when I accept connections on a Mac to keep the socket messages flowing?
Sure would love to see if someone else can re-produce this with a simple non-blocking client/server on a Macbook to confirm/deny.
I am at the moment getting a 2nd iMac up to test it as the server. I'll report back once I get LC installed and do some testing.
It appears if I use Windows as the server all will be good but I was hoping to have the option to have Macs for the server as well.
Thanks for any advice on this,
Bob Hall
Sockets "Freeze" until mouse move on Macbook
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10057
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Sockets "Freeze" until mouse move on Macbook
Bob, did you find a solution for this?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn