diff --git a/lib/cocoapods_stats/sender.rb b/lib/cocoapods_stats/sender.rb
index <HASH>..<HASH> 100644
--- a/lib/cocoapods_stats/sender.rb
+++ b/lib/cocoapods_stats/sender.rb
@@ -21,7 +21,7 @@ module CocoaPodsStats
 
     def curl(url, json, headers)
       headers = headers.map { |k, v| ['-H', "#{k}: #{v}"] }.flatten
-      command = ['curl', *headers, '-X', 'POST', '-d', json.to_json, url]
+      command = ['curl', *headers, '-X', 'POST', '-d', json.to_json, '-m', '30', url]
       dev_null = '/dev/null'
       Process.spawn(*command, :out => dev_null, :err => dev_null)
     end
Set curl's maximum timeout to <I> seconds.