Closed jaros1 closed 6 years ago
Test 1 failed. MN session is using wrong optional filetype:
error: MN is returning 88fdcc5c30-p.1480464020392 response. should have been 88fdcc5c30-i.1480464020392 2017-11-26 11:00:17.713 MoneyNetworkAPI.js:906 MoneyNetworkAPILib.message_demon dbQuery callback: ignoring old incoming message 88fdcc5c30-p.1480464020392. session started at 1511690079273 2017-11-26 11:00:19.785 MoneyNetworkAPI.js:813 MoneyNetworkAPILib.message_demon: timeout_in = 5, done[88fdcc5c30-i.1480464020392]={"request":{"msgtype":"queue_publish","cb_id":1,"response":1480464020392,"timeout_at":1511690423824},"timeout_at":1511690424809,"timeout_in":5}, now = 1511690419785 2017-11-26 11:00:24.786 MoneyNetworkAPI.js:813 MoneyNetworkAPILib.message_demon: timeout_in = 0, done[88fdcc5c30-i.1480464020392]={"request":{"msgtype":"queue_publish","cb_id":1,"response":1480464020392,"timeout_at":1511690423824},"timeout_at":1511690424809,"timeout_in":0}, now = 1511690424786 2017-11-26 11:00:25.288 MoneyNetworkAPI.js:829 MoneyNetworkAPILib.message_demon: timeout. running callback for 88fdcc5c30-i.1480464020392 w2 montreal: timeout in queue_publish request to MN. continue with publish. 2017-11-26 11:00:25.289 MoneyNetworkAPI.js:3019 MoneyNetworkAPI.send_message.get_and_decrypt: encrypt2/383: inner_path is an object. must be a timeout error returned from MoneyNetworkAPILib.wait_for_file function. inner_path = {"error":"Timeout while waiting for 88fdcc5c30-i.1480464020392. request was {\"msgtype\":\"queue_publish\",\"cb_id\":1,\"response\":1480464020392,\"timeout_at\":1511690423824}"} 2017-11-26 11:00:25.294 MoneyNetworkAPI.js:344 MoneyNetworkAPILib.debug_group_operation_end/383: total elapsed time for group_debug_seq 383 was 31490 ms 2017-11-26 11:00:25.295 MoneyNetworkAPI.js:345 MoneyNetworkAPILib.debug_group_operation_end/383: group_debug_operations = {"this_session_start_at":1511690393804,"msgtype":"queue_publish","this_session_filename":"905777081f","filename":"905777081f-p.1511690393824","this_session_error":"Timeout. queue_publish response was not received","this_session_finish_at":1511690425294,"this_session_elapsed_time":31490} 2017-11-26 11:00:25.297 MoneyNetworkAPI.js:2340 MoneyNetworkAPILib.queue_publish send_message callback 2: response = {"error":"Timeout while waiting for 88fdcc5c30-i.1480464020392. request was {\"msgtype\":\"queue_publish\",\"cb_id\":1,\"response\":1480464020392,\"timeout_at\":1511690423824}"} 2017-11-26 11:00:25.298 MoneyNetworkAPI.js:2344 MoneyNetworkAPILib.queue_publish send_message callback 2: queue_publish timeout. continue with normal publish. may cause problems with not distributed content.json due to ratelimit check in receiving peers
Test 5 OK:
w2: send queue_publish request. received start_publish response. starting sitePublish :-) 2017-11-26 13:35:42.079 MoneyNetworkAPI.js:3020 MoneyNetworkAPI.send_message.get_and_decrypt decrypt_json callback 8.2: encrypt2/410: response = {"msgtype":"start_publish","cb_id":1}, request_timestamp = 1511699716747, request_file_timestamp = 1511699716747 2017-11-26 13:35:42.081 MoneyNetworkAPI.js:344 MoneyNetworkAPILib.debug_group_operation_end/410: total elapsed time for group_debug_seq 410 was 25340 ms 2017-11-26 13:35:42.082 MoneyNetworkAPI.js:345 MoneyNetworkAPILib.debug_group_operation_end/410: group_debug_operations = {"this_session_start_at":1511699716741,"msgtype":"queue_publish","this_session_filename":"905777081f","filename":"905777081f-p.1511699716747","this_session_finish_at":1511699742081,"this_session_elapsed_time":25340} 2017-11-26 13:35:42.084 MoneyNetworkAPI.js:2340 MoneyNetworkAPILib.queue_publish send_message callback 2: response = {"msgtype":"start_publish","cb_id":1}
Optimize publish_queue and start_publish messages. wallet wish to publish content and sends a queue_publish request to MN. MN responds OK. MN sends a start_publish request to wallet and wallet responds OK. Total 4 messages with encryption and decryption overhead.
Can on some situations be optimized to 2 messages. return start_publish response to queue_publish request