Getting error code 504 Gateway Timeout when opening more than 6 parallel NSURLConnection.sendSynchronousRequest using dispatch_group_async and different dispatch queue and dispatch group.
This error is not consistent and happens around 30% of the time.
This error is not happening when I reduce the amount of parallel connections to 5.
Does anyone now why this is happening? Isn't NSURLConnection thread safe?