Changeset 2170 for branches/blt4/p2p/worker.tcl
- Timestamp:
- Mar 30, 2011, 12:34:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/p2p/worker.tcl
r1273 r2170 118 118 # ------------------------------------------------------------------ 119 119 define solicit {args} { 120 log debug "SOLICIT from foreman: $args"121 120 variable cid 122 121 log debug "solicitation request from foreman: $args" … … 161 160 # ------------------------------------------------------------------ 162 161 define solicit {args} { 163 log debug "SOLICIT from peer: $args"164 162 variable cid 165 163 log debug "solicitation request from peer: $args" … … 177 175 # ------------------------------------------------------------------ 178 176 define proffer {token details} { 179 log debug "PROFFER from peer: $token $details"180 177 Solicitation::proffer $token $details 181 178 return "" … … 226 223 # ------------------------------------------------------------------ 227 224 define solicit {args} { 228 log debug "SOLICIT from peer: $args"229 225 variable cid 230 226 log debug "solicitation request from peer: $args" … … 242 238 # ------------------------------------------------------------------ 243 239 define proffer {token details} { 244 log debug "PROFFER from peer: $token $details"245 240 Solicitation::proffer $token $details 246 241 return "" … … 636 631 set mesg [list solicit -job $job -path $path -avoid "$avoid @RECIPIENTS" -token $_serial] 637 632 set _waitfor [broadcast_to_peers $mesg $avoid] 638 log debug "WAIT FOR: $_waitfor"639 633 640 634 if {$_waitfor > 0} { … … 643 637 } 644 638 } 645 log debug "TIMEOUT: $delay"646 639 set _timeout [after $delay [itcl::code $this finalize]] 647 640 } … … 656 649 append _response $details "\n" 657 650 if {[incr _waitfor -1] <= 0} { 658 log debug "ALL RESPONSES"659 651 finalize 660 652 } … … 676 668 # add details about this client to the message 677 669 append block "$myaddress -job $job -cost 1 -wonks [p2p::wonks::current]" 678 log debug "FINALIZE {$block}"679 670 680 671 # send the composite results back to the caller
Note: See TracChangeset
for help on using the changeset viewer.