Commit 27bccd14a1a0c2ced9bdc1eab4e18a9e5aecf884
1 parent
e6388e8b
remove some debug comment
Showing
1 changed file
with
6 additions
and
7 deletions
Show diff stats
net_services/CXM_generic_protocol.anubis
| ... | ... | @@ -246,17 +246,16 @@ public define Bool |
| 246 | 246 | MessageQueue mQ, |
| 247 | 247 | Message msg, |
| 248 | 248 | )= |
| 249 | - println("NET_SERVICE send_file_ref received *"); | |
| 249 | + //println("NET_SERVICE send_file_ref received *"); | |
| 250 | 250 | if *msg.what = _CXM_GET_FILE_REF then |
| 251 | 251 | if find_message(msg, "GET_FILE_REF") is { |
| 252 | 252 | failure then println("NET_SERVICE send_file_ref: can't find GET_FILE_REF message"); false, |
| 253 | 253 | success(file_ref_obj_msg) then |
| 254 | - println("NET_SERVICE send_file_ref: GET_FILE_REF message found"); | |
| 255 | 254 | if (Maybe(File_ref))from_Message(file_ref_obj_msg) is |
| 256 | 255 | { |
| 257 | 256 | failure then println("NET_SERVICE send_file_ref: can't extract GET_FILE_REF message");false, |
| 258 | 257 | success(f_ref) then |
| 259 | - println("NET_SERVICE send_file_ref: GET_FILE_REF message File_ref extracted\n"+dump(file_ref_obj_msg)); | |
| 258 | + //println("NET_SERVICE send_file_ref: GET_FILE_REF message File_ref extracted\n"+dump(file_ref_obj_msg)); | |
| 260 | 259 | //create the target |
| 261 | 260 | with source_file = f_ref.path + "/" + f_ref.name, |
| 262 | 261 | with msg = message(0), |
| ... | ... | @@ -265,16 +264,16 @@ public define Bool |
| 265 | 264 | println("source_file = "+source_file); |
| 266 | 265 | println("size = "+size); |
| 267 | 266 | forget(add_string(msg, "MODE", "NEW")); |
| 268 | - println("add MODE ok"); | |
| 269 | 267 | forget(add_string(msg, "SIZE", to_String(size))); |
| 270 | - println("add SIZE ok"); | |
| 271 | - println("NET_SERVICE send_file_ref: reply message \n"+dump(msg)); | |
| 268 | + | |
| 269 | + //println("NET_SERVICE send_file_ref: reply message \n"+dump(msg)); | |
| 272 | 270 | if (Maybe(RStream))file(source_file, read) is |
| 273 | 271 | { |
| 274 | 272 | failure then println("NET_SERVICE send_file_ref: can't open source file"+source_file);false, //nothing to write |
| 275 | 273 | success(source) then |
| 276 | - println("NET_SERVICE send_file_ref send ack file size "+size); | |
| 274 | + //println("NET_SERVICE send_file_ref send ack file size "+size); | |
| 277 | 275 | send_ACK_ok(mQ, _CXM_GET_FILE_REF, msg); |
| 276 | + //println("call flush_wait"); | |
| 278 | 277 | mQ.flush_wait(unique); |
| 279 | 278 | if copy_file_to_Connection(file(source), mQ.get_connection(unique), size) is |
| 280 | 279 | { | ... | ... |