{"action":"created","comment":{"url":"https://api.github.com/repos/henrykh/network_tools/pulls/comments/24647004","id":24647004,"diff_hunk":"@@ -0,0 +1,34 @@\n+from __future__ import unicode_literals\n+import socket\n+\n+\n+server_socket = socket.socket(\n+    socket.AF_INET,\n+    socket.SOCK_STREAM,\n+    socket.IPPROTO_IP)\n+\n+buffer_size = 32\n+\n+server_socket.bind(('127.0.0.1', 50000))\n+server_socket.listen(1)\n+\n+\n+try:\n+    while True:\n+        msg = 'Echo: \"'","path":"echo_server.py","position":18,"original_position":18,"commit_id":"89a10e7c2cfee29bb770b3fccb2b133297f2d599","original_commit_id":"89a10e7c2cfee29bb770b3fccb2b133297f2d599","user":{"login":"cewing","id":417109,"avatar_url":"https://avatars.githubusercontent.com/u/417109?v=3","gravatar_id":"","url":"https://api.github.com/users/cewing","html_url":"https://github.com/cewing","followers_url":"https://api.github.com/users/cewing/followers","following_url":"https://api.github.com/users/cewing/following{/other_user}","gists_url":"https://api.github.com/users/cewing/gists{/gist_id}","starred_url":"https://api.github.com/users/cewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewing/subscriptions","organizations_url":"https://api.github.com/users/cewing/orgs","repos_url":"https://api.github.com/users/cewing/repos","events_url":"https://api.github.com/users/cewing/events{/privacy}","received_events_url":"https://api.github.com/users/cewing/received_events","type":"User","site_admin":false},"body":"By adding this to the value you send back to the client, you are no longer echoing.  You are altering the message in transit.  Don't.","created_at":"2015-02-13T06:49:41Z","updated_at":"2015-02-13T06:49:41Z","html_url":"https://github.com/henrykh/network_tools/pull/1#discussion_r24647004","pull_request_url":"https://api.github.com/repos/henrykh/network_tools/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/henrykh/network_tools/pulls/comments/24647004"},"html":{"href":"https://github.com/henrykh/network_tools/pull/1#discussion_r24647004"},"pull_request":{"href":"https://api.github.com/repos/henrykh/network_tools/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/henrykh/network_tools/pulls/1","id":29070883,"html_url":"https://github.com/henrykh/network_tools/pull/1","diff_url":"https://github.com/henrykh/network_tools/pull/1.diff","patch_url":"https://github.com/henrykh/network_tools/pull/1.patch","issue_url":"https://api.github.com/repos/henrykh/network_tools/issues/1","number":1,"state":"open","locked":false,"title":"Echo","user":{"login":"henrykh","id":8690446,"avatar_url":"https://avatars.githubusercontent.com/u/8690446?v=3","gravatar_id":"","url":"https://api.github.com/users/henrykh","html_url":"https://github.com/henrykh","followers_url":"https://api.github.com/users/henrykh/followers","following_url":"https://api.github.com/users/henrykh/following{/other_user}","gists_url":"https://api.github.com/users/henrykh/gists{/gist_id}","starred_url":"https://api.github.com/users/henrykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrykh/subscriptions","organizations_url":"https://api.github.com/users/henrykh/orgs","repos_url":"https://api.github.com/users/henrykh/repos","events_url":"https://api.github.com/users/henrykh/events{/privacy}","received_events_url":"https://api.github.com/users/henrykh/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-11T06:38:31Z","updated_at":"2015-02-13T06:49:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdeda10017f4cbd4995a47cfce861e1a6526b882","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/henrykh/network_tools/pulls/1/commits","review_comments_url":"https://api.github.com/repos/henrykh/network_tools/pulls/1/comments","review_comment_url":"https://api.github.com/repos/henrykh/network_tools/pulls/comments/{number}","comments_url":"https://api.github.com/repos/henrykh/network_tools/issues/1/comments","statuses_url":"https://api.github.com/repos/henrykh/network_tools/statuses/89a10e7c2cfee29bb770b3fccb2b133297f2d599","head":{"label":"henrykh:echo","ref":"echo","sha":"89a10e7c2cfee29bb770b3fccb2b133297f2d599","user":{"login":"henrykh","id":8690446,"avatar_url":"https://avatars.githubusercontent.com/u/8690446?v=3","gravatar_id":"","url":"https://api.github.com/users/henrykh","html_url":"https://github.com/henrykh","followers_url":"https://api.github.com/users/henrykh/followers","following_url":"https://api.github.com/users/henrykh/following{/other_user}","gists_url":"https://api.github.com/users/henrykh/gists{/gist_id}","starred_url":"https://api.github.com/users/henrykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrykh/subscriptions","organizations_url":"https://api.github.com/users/henrykh/orgs","repos_url":"https://api.github.com/users/henrykh/repos","events_url":"https://api.github.com/users/henrykh/events{/privacy}","received_events_url":"https://api.github.com/users/henrykh/received_events","type":"User","site_admin":false},"repo":{"id":30580339,"name":"network_tools","full_name":"henrykh/network_tools","owner":{"login":"henrykh","id":8690446,"avatar_url":"https://avatars.githubusercontent.com/u/8690446?v=3","gravatar_id":"","url":"https://api.github.com/users/henrykh","html_url":"https://github.com/henrykh","followers_url":"https://api.github.com/users/henrykh/followers","following_url":"https://api.github.com/users/henrykh/following{/other_user}","gists_url":"https://api.github.com/users/henrykh/gists{/gist_id}","starred_url":"https://api.github.com/users/henrykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrykh/subscriptions","organizations_url":"https://api.github.com/users/henrykh/orgs","repos_url":"https://api.github.com/users/henrykh/repos","events_url":"https://api.github.com/users/henrykh/events{/privacy}","received_events_url":"https://api.github.com/users/henrykh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/henrykh/network_tools","description":"","fork":false,"url":"https://api.github.com/repos/henrykh/network_tools","forks_url":"https://api.github.com/repos/henrykh/network_tools/forks","keys_url":"https://api.github.com/repos/henrykh/network_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/henrykh/network_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/henrykh/network_tools/teams","hooks_url":"https://api.github.com/repos/henrykh/network_tools/hooks","issue_events_url":"https://api.github.com/repos/henrykh/network_tools/issues/events{/number}","events_url":"https://api.github.com/repos/henrykh/network_tools/events","assignees_url":"https://api.github.com/repos/henrykh/network_tools/assignees{/user}","branches_url":"https://api.github.com/repos/henrykh/network_tools/branches{/branch}","tags_url":"https://api.github.com/repos/henrykh/network_tools/tags","blobs_url":"https://api.github.com/repos/henrykh/network_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/henrykh/network_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/henrykh/network_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/henrykh/network_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/henrykh/network_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/henrykh/network_tools/languages","stargazers_url":"https://api.github.com/repos/henrykh/network_tools/stargazers","contributors_url":"https://api.github.com/repos/henrykh/network_tools/contributors","subscribers_url":"https://api.github.com/repos/henrykh/network_tools/subscribers","subscription_url":"https://api.github.com/repos/henrykh/network_tools/subscription","commits_url":"https://api.github.com/repos/henrykh/network_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/henrykh/network_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/henrykh/network_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/henrykh/network_tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/henrykh/network_tools/contents/{+path}","compare_url":"https://api.github.com/repos/henrykh/network_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/henrykh/network_tools/merges","archive_url":"https://api.github.com/repos/henrykh/network_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/henrykh/network_tools/downloads","issues_url":"https://api.github.com/repos/henrykh/network_tools/issues{/number}","pulls_url":"https://api.github.com/repos/henrykh/network_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/henrykh/network_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/henrykh/network_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/henrykh/network_tools/labels{/name}","releases_url":"https://api.github.com/repos/henrykh/network_tools/releases{/id}","created_at":"2015-02-10T07:27:03Z","updated_at":"2015-02-10T07:27:03Z","pushed_at":"2015-02-12T05:56:04Z","git_url":"git://github.com/henrykh/network_tools.git","ssh_url":"git@github.com:henrykh/network_tools.git","clone_url":"https://github.com/henrykh/network_tools.git","svn_url":"https://github.com/henrykh/network_tools","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"henrykh:master","ref":"master","sha":"3a5865dc754005d1306bb507c74d700c4bc8b4d1","user":{"login":"henrykh","id":8690446,"avatar_url":"https://avatars.githubusercontent.com/u/8690446?v=3","gravatar_id":"","url":"https://api.github.com/users/henrykh","html_url":"https://github.com/henrykh","followers_url":"https://api.github.com/users/henrykh/followers","following_url":"https://api.github.com/users/henrykh/following{/other_user}","gists_url":"https://api.github.com/users/henrykh/gists{/gist_id}","starred_url":"https://api.github.com/users/henrykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrykh/subscriptions","organizations_url":"https://api.github.com/users/henrykh/orgs","repos_url":"https://api.github.com/users/henrykh/repos","events_url":"https://api.github.com/users/henrykh/events{/privacy}","received_events_url":"https://api.github.com/users/henrykh/received_events","type":"User","site_admin":false},"repo":{"id":30580339,"name":"network_tools","full_name":"henrykh/network_tools","owner":{"login":"henrykh","id":8690446,"avatar_url":"https://avatars.githubusercontent.com/u/8690446?v=3","gravatar_id":"","url":"https://api.github.com/users/henrykh","html_url":"https://github.com/henrykh","followers_url":"https://api.github.com/users/henrykh/followers","following_url":"https://api.github.com/users/henrykh/following{/other_user}","gists_url":"https://api.github.com/users/henrykh/gists{/gist_id}","starred_url":"https://api.github.com/users/henrykh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrykh/subscriptions","organizations_url":"https://api.github.com/users/henrykh/orgs","repos_url":"https://api.github.com/users/henrykh/repos","events_url":"https://api.github.com/users/henrykh/events{/privacy}","received_events_url":"https://api.github.com/users/henrykh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/henrykh/network_tools","description":"","fork":false,"url":"https://api.github.com/repos/henrykh/network_tools","forks_url":"https://api.github.com/repos/henrykh/network_tools/forks","keys_url":"https://api.github.com/repos/henrykh/network_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/henrykh/network_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/henrykh/network_tools/teams","hooks_url":"https://api.github.com/repos/henrykh/network_tools/hooks","issue_events_url":"https://api.github.com/repos/henrykh/network_tools/issues/events{/number}","events_url":"https://api.github.com/repos/henrykh/network_tools/events","assignees_url":"https://api.github.com/repos/henrykh/network_tools/assignees{/user}","branches_url":"https://api.github.com/repos/henrykh/network_tools/branches{/branch}","tags_url":"https://api.github.com/repos/henrykh/network_tools/tags","blobs_url":"https://api.github.com/repos/henrykh/network_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/henrykh/network_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/henrykh/network_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/henrykh/network_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/henrykh/network_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/henrykh/network_tools/languages","stargazers_url":"https://api.github.com/repos/henrykh/network_tools/stargazers","contributors_url":"https://api.github.com/repos/henrykh/network_tools/contributors","subscribers_url":"https://api.github.com/repos/henrykh/network_tools/subscribers","subscription_url":"https://api.github.com/repos/henrykh/network_tools/subscription","commits_url":"https://api.github.com/repos/henrykh/network_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/henrykh/network_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/henrykh/network_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/henrykh/network_tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/henrykh/network_tools/contents/{+path}","compare_url":"https://api.github.com/repos/henrykh/network_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/henrykh/network_tools/merges","archive_url":"https://api.github.com/repos/henrykh/network_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/henrykh/network_tools/downloads","issues_url":"https://api.github.com/repos/henrykh/network_tools/issues{/number}","pulls_url":"https://api.github.com/repos/henrykh/network_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/henrykh/network_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/henrykh/network_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/henrykh/network_tools/labels{/name}","releases_url":"https://api.github.com/repos/henrykh/network_tools/releases{/id}","created_at":"2015-02-10T07:27:03Z","updated_at":"2015-02-10T07:27:03Z","pushed_at":"2015-02-12T05:56:04Z","git_url":"git://github.com/henrykh/network_tools.git","ssh_url":"git@github.com:henrykh/network_tools.git","clone_url":"https://github.com/henrykh/network_tools.git","svn_url":"https://github.com/henrykh/network_tools","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/henrykh/network_tools/pulls/1"},"html":{"href":"https://github.com/henrykh/network_tools/pull/1"},"issue":{"href":"https://api.github.com/repos/henrykh/network_tools/issues/1"},"comments":{"href":"https://api.github.com/repos/henrykh/network_tools/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/henrykh/network_tools/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/henrykh/network_tools/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/henrykh/network_tools/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/henrykh/network_tools/statuses/89a10e7c2cfee29bb770b3fccb2b133297f2d599"}}}}