We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c494501f authored by Mike Sheldon's avatar Mike Sheldon

Add timeout to scrobble forwarding

parent efae063b
......@@ -239,6 +239,8 @@ function forwardScrobble($userid, $artist, $album, $track, $time, $mbid, $source
curl_setopt ($curl_session, CURLOPT_POST, true);
curl_setopt ($curl_session, CURLOPT_POSTFIELDS, $post_vars);
curl_setopt ($curl_session, CURLOPT_RETURNTRANSFER, true);
curl_setopt ($curl_session, CURLOPT_CONNECTTIMEOUT, 1);
curl_setopt ($curl_session, CURLOPT_TIMEOUT, 1);
$response = curl_exec($curl_session);
curl_close($curl_session);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment