Permalink
Browse files

Quick bugfix on Altera mining script. Added timeout to HTTP requests.

  • Loading branch information...
1 parent 2a98a7b commit 321300eac7ea59c138af09d7475ad4457ccbb9a7 @fpgaminer fpgaminer committed Aug 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/mine/json_rpc.tcl
@@ -6,7 +6,7 @@ package require base64
proc do_rpc_request {url userpass request} {
set headers [list "Authorization" "Basic $userpass"]
- set token [::http::geturl $url -query $request -headers $headers -type "application/json"]
+ set token [::http::geturl $url -query $request -headers $headers -type "application/json" -timeout 5000]
set data [::http::data $token]
::http::cleanup $token

0 comments on commit 321300e

Please sign in to comment.