jhester / DistributedGA

A distributed Genetic Algorithm simulation.
http://josiahhester.com
5 stars 0 forks source link

Receiving data #18

Closed ghost closed 13 years ago

ghost commented 13 years ago

We are still have problems getting data from the socket. recv doesn't always get all the data, which then messes pickle up. If we fix this then I think our client dropping issues will stop. Right now if the same computer is hosting the server and clients they never drop, which means we have a network issue

jhester commented 13 years ago

Should we get a script that will resend if the data is incomplete?

jhester commented 13 years ago

So from what I read using pickle on a network is both inconsistent , and unsafe. A lot of people had the same issues we do.

ghost commented 13 years ago

I found a script to act like a recvall function, plus if pickle fails to load (not too too often) the client handles that correctly (tells server it didn't get information)

Client dropping issue seems to be completely solved.