{"action":"created","issue":{"url":"https://api.github.com/repos/RobotWebTools/rosbridge_suite/issues/138","labels_url":"https://api.github.com/repos/RobotWebTools/rosbridge_suite/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/RobotWebTools/rosbridge_suite/issues/138/comments","events_url":"https://api.github.com/repos/RobotWebTools/rosbridge_suite/issues/138/events","html_url":"https://github.com/RobotWebTools/rosbridge_suite/issues/138","id":46975857,"number":138,"title":"Problem of md5sum  warning when web is refreshed","user":{"login":"dwlee","id":3962083,"avatar_url":"https://avatars.githubusercontent.com/u/3962083?v=3","gravatar_id":"","url":"https://api.github.com/users/dwlee","html_url":"https://github.com/dwlee","followers_url":"https://api.github.com/users/dwlee/followers","following_url":"https://api.github.com/users/dwlee/following{/other_user}","gists_url":"https://api.github.com/users/dwlee/gists{/gist_id}","starred_url":"https://api.github.com/users/dwlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwlee/subscriptions","organizations_url":"https://api.github.com/users/dwlee/orgs","repos_url":"https://api.github.com/users/dwlee/repos","events_url":"https://api.github.com/users/dwlee/events{/privacy}","received_events_url":"https://api.github.com/users/dwlee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RobotWebTools/rosbridge_suite/labels/Bug%20Fix","name":"Bug Fix","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-10-28T00:13:50Z","updated_at":"2016-01-18T09:58:00Z","closed_at":null,"body":"When web client using roslibjs is refreshed, md5sum warning is occurred. And then the refreshed client can not publish topic for about some second. \r\n\r\nThe situation is as below.\r\n1. Launch rosbridge.\r\n```roslaunch rosbridge_server rosbridge_websocket.launch --screen```\r\n2. Load test client 1 html (It is simple html page. it just publishes ```/chatter``` message which is  ````std_msgs/String```` type).\r\n3. Load test client 2 html (it only subscribe message sent client 1).\r\n4. Send the string message by /chatter in client 1.\r\n5. Check received message in client 2 side.\r\n6. If you check the received message, and refresh the client 2. The md5sum warning will be happened as below. Try to publish again at client 1, but client 2 can not receive message for a little while .\r\n```\r\n[WARN] [WallTime: 1412842915.168814] Could not process inbound connection: [/rosbridge_websocket] is not a publisher of [/chatter]. Topics are [['/rosout', 'rosgraph_msgs/Log']]{'message_definition': 'string data\\n\\n', 'callerid': '/rosbridge_websocket', 'tcp_nodelay': '0', 'md5sum': '992ce8a1687cec8c8bd883ec73ca41d1', 'topic': '/chatter', 'type': 'std_msgs/String'}\r\n```\r\n\r\nThis is my test code.\r\nhttps://github.com/robotics-in-concert/rocon_demos/tree/office_concert/office_web_interface/www/web_app/yujin_office/test_app\r\n\r\n[test_pub.html](https://github.com/robotics-in-concert/rocon_demos/blob/office_concert/office_web_interface/www/web_app/yujin_office/test_app/test_pub.html) is client 1 and [test_sub.html](https://github.com/robotics-in-concert/rocon_demos/blob/office_concert/office_web_interface/www/web_app/yujin_office/test_app/test_sub.html) is client 2. If push the ``` chatter ```button client 1 publish the simple string included count message."},"comment":{"url":"https://api.github.com/repos/RobotWebTools/rosbridge_suite/issues/comments/172482909","html_url":"https://github.com/RobotWebTools/rosbridge_suite/issues/138#issuecomment-172482909","issue_url":"https://api.github.com/repos/RobotWebTools/rosbridge_suite/issues/138","id":172482909,"user":{"login":"T045T","id":871405,"avatar_url":"https://avatars.githubusercontent.com/u/871405?v=3","gravatar_id":"","url":"https://api.github.com/users/T045T","html_url":"https://github.com/T045T","followers_url":"https://api.github.com/users/T045T/followers","following_url":"https://api.github.com/users/T045T/following{/other_user}","gists_url":"https://api.github.com/users/T045T/gists{/gist_id}","starred_url":"https://api.github.com/users/T045T/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T045T/subscriptions","organizations_url":"https://api.github.com/users/T045T/orgs","repos_url":"https://api.github.com/users/T045T/repos","events_url":"https://api.github.com/users/T045T/events{/privacy}","received_events_url":"https://api.github.com/users/T045T/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T09:58:00Z","updated_at":"2016-01-18T09:58:00Z","body":"Since several forks have adopted this \"quick hack\", and it doesn't look like rospy is going to fix the root cause any time soon (assuming it's possible to do so), how about a nicer solution?\r\n\r\nI'm thinking a timeout for unregistering topics with no clients, so the publisher survives quick page reloads, but rosbridge doesn't leak publishers. This is particularly important in connection with the service-based tf2_web_republisher, as that will generate new topics for each new client (and as such, for each page reload).\r\n\r\nIf you think a timeout is an acceptable solution, I'll implement it :)"}}