In time-sensitive applications (e.g. a sensor that uploads data every minute) a timeout feature in data reads and writes to the server might help dealing with slow internet connections, ensuring that the function never exeeds a certain time duration.
Python module "requests" already supports this, so it's only a single-line edit to do.