{"action":"created","comment":{"url":"https://api.github.com/repos/secdev/scapy/pulls/comments/56988859","id":56988859,"diff_hunk":"@@ -32,7 +32,14 @@ def send(self, x):\n         sx = str(x)\n         if hasattr(x, \"sent_time\"):\n             x.sent_time = time.time()\n-        return self.outs.send(sx)\n+        try:\n+            return self.outs.send(sx)\n+        except socket.error, msg:\n+            if msg[0] == 22 and len(sx) < conf.min_pkt_size:","path":"scapy/supersocket.py","position":8,"original_position":8,"commit_id":"c766b155696491ee36a841e1ab697dfb06f13593","original_commit_id":"c766b155696491ee36a841e1ab697dfb06f13593","user":{"login":"guedou","id":11683796,"avatar_url":"https://avatars.githubusercontent.com/u/11683796?v=3","gravatar_id":"","url":"https://api.github.com/users/guedou","html_url":"https://github.com/guedou","followers_url":"https://api.github.com/users/guedou/followers","following_url":"https://api.github.com/users/guedou/following{/other_user}","gists_url":"https://api.github.com/users/guedou/gists{/gist_id}","starred_url":"https://api.github.com/users/guedou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guedou/subscriptions","organizations_url":"https://api.github.com/users/guedou/orgs","repos_url":"https://api.github.com/users/guedou/repos","events_url":"https://api.github.com/users/guedou/events{/privacy}","received_events_url":"https://api.github.com/users/guedou/received_events","type":"User","site_admin":false},"body":"As this is Linux specific, I think that this patch must be moved to scapy/arch/linux.py","created_at":"2016-03-22T13:54:42Z","updated_at":"2016-03-22T13:54:42Z","html_url":"https://github.com/secdev/scapy/pull/91#discussion_r56988859","pull_request_url":"https://api.github.com/repos/secdev/scapy/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/secdev/scapy/pulls/comments/56988859"},"html":{"href":"https://github.com/secdev/scapy/pull/91#discussion_r56988859"},"pull_request":{"href":"https://api.github.com/repos/secdev/scapy/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/secdev/scapy/pulls/91","id":63499971,"html_url":"https://github.com/secdev/scapy/pull/91","diff_url":"https://github.com/secdev/scapy/pull/91.diff","patch_url":"https://github.com/secdev/scapy/pull/91.patch","issue_url":"https://api.github.com/repos/secdev/scapy/issues/91","number":91,"state":"open","locked":false,"title":"Pad packet when needed","user":{"login":"p-l-","id":5064814,"avatar_url":"https://avatars.githubusercontent.com/u/5064814?v=3","gravatar_id":"","url":"https://api.github.com/users/p-l-","html_url":"https://github.com/p-l-","followers_url":"https://api.github.com/users/p-l-/followers","following_url":"https://api.github.com/users/p-l-/following{/other_user}","gists_url":"https://api.github.com/users/p-l-/gists{/gist_id}","starred_url":"https://api.github.com/users/p-l-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-l-/subscriptions","organizations_url":"https://api.github.com/users/p-l-/orgs","repos_url":"https://api.github.com/users/p-l-/repos","events_url":"https://api.github.com/users/p-l-/events{/privacy}","received_events_url":"https://api.github.com/users/p-l-/received_events","type":"User","site_admin":false},"body":"This fixes #90.","created_at":"2016-03-20T16:29:59Z","updated_at":"2016-03-22T13:54:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa3af5252798be5e42468eb9d0e0e59d61062e46","assignee":{"login":"guedou","id":11683796,"avatar_url":"https://avatars.githubusercontent.com/u/11683796?v=3","gravatar_id":"","url":"https://api.github.com/users/guedou","html_url":"https://github.com/guedou","followers_url":"https://api.github.com/users/guedou/followers","following_url":"https://api.github.com/users/guedou/following{/other_user}","gists_url":"https://api.github.com/users/guedou/gists{/gist_id}","starred_url":"https://api.github.com/users/guedou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guedou/subscriptions","organizations_url":"https://api.github.com/users/guedou/orgs","repos_url":"https://api.github.com/users/guedou/repos","events_url":"https://api.github.com/users/guedou/events{/privacy}","received_events_url":"https://api.github.com/users/guedou/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/secdev/scapy/pulls/91/commits","review_comments_url":"https://api.github.com/repos/secdev/scapy/pulls/91/comments","review_comment_url":"https://api.github.com/repos/secdev/scapy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/secdev/scapy/issues/91/comments","statuses_url":"https://api.github.com/repos/secdev/scapy/statuses/c766b155696491ee36a841e1ab697dfb06f13593","head":{"label":"p-l-:fix-90","ref":"fix-90","sha":"c766b155696491ee36a841e1ab697dfb06f13593","user":{"login":"p-l-","id":5064814,"avatar_url":"https://avatars.githubusercontent.com/u/5064814?v=3","gravatar_id":"","url":"https://api.github.com/users/p-l-","html_url":"https://github.com/p-l-","followers_url":"https://api.github.com/users/p-l-/followers","following_url":"https://api.github.com/users/p-l-/following{/other_user}","gists_url":"https://api.github.com/users/p-l-/gists{/gist_id}","starred_url":"https://api.github.com/users/p-l-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-l-/subscriptions","organizations_url":"https://api.github.com/users/p-l-/orgs","repos_url":"https://api.github.com/users/p-l-/repos","events_url":"https://api.github.com/users/p-l-/events{/privacy}","received_events_url":"https://api.github.com/users/p-l-/received_events","type":"User","site_admin":false},"repo":{"id":49491409,"name":"scapy","full_name":"p-l-/scapy","owner":{"login":"p-l-","id":5064814,"avatar_url":"https://avatars.githubusercontent.com/u/5064814?v=3","gravatar_id":"","url":"https://api.github.com/users/p-l-","html_url":"https://github.com/p-l-","followers_url":"https://api.github.com/users/p-l-/followers","following_url":"https://api.github.com/users/p-l-/following{/other_user}","gists_url":"https://api.github.com/users/p-l-/gists{/gist_id}","starred_url":"https://api.github.com/users/p-l-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-l-/subscriptions","organizations_url":"https://api.github.com/users/p-l-/orgs","repos_url":"https://api.github.com/users/p-l-/repos","events_url":"https://api.github.com/users/p-l-/events{/privacy}","received_events_url":"https://api.github.com/users/p-l-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/p-l-/scapy","description":"Python-based interactive packet manipulation program & library","fork":true,"url":"https://api.github.com/repos/p-l-/scapy","forks_url":"https://api.github.com/repos/p-l-/scapy/forks","keys_url":"https://api.github.com/repos/p-l-/scapy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/p-l-/scapy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/p-l-/scapy/teams","hooks_url":"https://api.github.com/repos/p-l-/scapy/hooks","issue_events_url":"https://api.github.com/repos/p-l-/scapy/issues/events{/number}","events_url":"https://api.github.com/repos/p-l-/scapy/events","assignees_url":"https://api.github.com/repos/p-l-/scapy/assignees{/user}","branches_url":"https://api.github.com/repos/p-l-/scapy/branches{/branch}","tags_url":"https://api.github.com/repos/p-l-/scapy/tags","blobs_url":"https://api.github.com/repos/p-l-/scapy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/p-l-/scapy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/p-l-/scapy/git/refs{/sha}","trees_url":"https://api.github.com/repos/p-l-/scapy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/p-l-/scapy/statuses/{sha}","languages_url":"https://api.github.com/repos/p-l-/scapy/languages","stargazers_url":"https://api.github.com/repos/p-l-/scapy/stargazers","contributors_url":"https://api.github.com/repos/p-l-/scapy/contributors","subscribers_url":"https://api.github.com/repos/p-l-/scapy/subscribers","subscription_url":"https://api.github.com/repos/p-l-/scapy/subscription","commits_url":"https://api.github.com/repos/p-l-/scapy/commits{/sha}","git_commits_url":"https://api.github.com/repos/p-l-/scapy/git/commits{/sha}","comments_url":"https://api.github.com/repos/p-l-/scapy/comments{/number}","issue_comment_url":"https://api.github.com/repos/p-l-/scapy/issues/comments{/number}","contents_url":"https://api.github.com/repos/p-l-/scapy/contents/{+path}","compare_url":"https://api.github.com/repos/p-l-/scapy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/p-l-/scapy/merges","archive_url":"https://api.github.com/repos/p-l-/scapy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/p-l-/scapy/downloads","issues_url":"https://api.github.com/repos/p-l-/scapy/issues{/number}","pulls_url":"https://api.github.com/repos/p-l-/scapy/pulls{/number}","milestones_url":"https://api.github.com/repos/p-l-/scapy/milestones{/number}","notifications_url":"https://api.github.com/repos/p-l-/scapy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/p-l-/scapy/labels{/name}","releases_url":"https://api.github.com/repos/p-l-/scapy/releases{/id}","deployments_url":"https://api.github.com/repos/p-l-/scapy/deployments","created_at":"2016-01-12T10:03:31Z","updated_at":"2016-03-20T13:16:15Z","pushed_at":"2016-03-22T08:09:45Z","git_url":"git://github.com/p-l-/scapy.git","ssh_url":"git@github.com:p-l-/scapy.git","clone_url":"https://github.com/p-l-/scapy.git","svn_url":"https://github.com/p-l-/scapy","homepage":"http://www.secdev.org/projects/scapy/","size":63412,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"secdev:master","ref":"master","sha":"60ed0c8d4672d1e46de5a4a757c69e14dd2abe3a","user":{"login":"secdev","id":14927208,"avatar_url":"https://avatars.githubusercontent.com/u/14927208?v=3","gravatar_id":"","url":"https://api.github.com/users/secdev","html_url":"https://github.com/secdev","followers_url":"https://api.github.com/users/secdev/followers","following_url":"https://api.github.com/users/secdev/following{/other_user}","gists_url":"https://api.github.com/users/secdev/gists{/gist_id}","starred_url":"https://api.github.com/users/secdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secdev/subscriptions","organizations_url":"https://api.github.com/users/secdev/orgs","repos_url":"https://api.github.com/users/secdev/repos","events_url":"https://api.github.com/users/secdev/events{/privacy}","received_events_url":"https://api.github.com/users/secdev/received_events","type":"Organization","site_admin":false},"repo":{"id":43509302,"name":"scapy","full_name":"secdev/scapy","owner":{"login":"secdev","id":14927208,"avatar_url":"https://avatars.githubusercontent.com/u/14927208?v=3","gravatar_id":"","url":"https://api.github.com/users/secdev","html_url":"https://github.com/secdev","followers_url":"https://api.github.com/users/secdev/followers","following_url":"https://api.github.com/users/secdev/following{/other_user}","gists_url":"https://api.github.com/users/secdev/gists{/gist_id}","starred_url":"https://api.github.com/users/secdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secdev/subscriptions","organizations_url":"https://api.github.com/users/secdev/orgs","repos_url":"https://api.github.com/users/secdev/repos","events_url":"https://api.github.com/users/secdev/events{/privacy}","received_events_url":"https://api.github.com/users/secdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/secdev/scapy","description":"Python-based interactive packet manipulation program & library","fork":false,"url":"https://api.github.com/repos/secdev/scapy","forks_url":"https://api.github.com/repos/secdev/scapy/forks","keys_url":"https://api.github.com/repos/secdev/scapy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/secdev/scapy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/secdev/scapy/teams","hooks_url":"https://api.github.com/repos/secdev/scapy/hooks","issue_events_url":"https://api.github.com/repos/secdev/scapy/issues/events{/number}","events_url":"https://api.github.com/repos/secdev/scapy/events","assignees_url":"https://api.github.com/repos/secdev/scapy/assignees{/user}","branches_url":"https://api.github.com/repos/secdev/scapy/branches{/branch}","tags_url":"https://api.github.com/repos/secdev/scapy/tags","blobs_url":"https://api.github.com/repos/secdev/scapy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/secdev/scapy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/secdev/scapy/git/refs{/sha}","trees_url":"https://api.github.com/repos/secdev/scapy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/secdev/scapy/statuses/{sha}","languages_url":"https://api.github.com/repos/secdev/scapy/languages","stargazers_url":"https://api.github.com/repos/secdev/scapy/stargazers","contributors_url":"https://api.github.com/repos/secdev/scapy/contributors","subscribers_url":"https://api.github.com/repos/secdev/scapy/subscribers","subscription_url":"https://api.github.com/repos/secdev/scapy/subscription","commits_url":"https://api.github.com/repos/secdev/scapy/commits{/sha}","git_commits_url":"https://api.github.com/repos/secdev/scapy/git/commits{/sha}","comments_url":"https://api.github.com/repos/secdev/scapy/comments{/number}","issue_comment_url":"https://api.github.com/repos/secdev/scapy/issues/comments{/number}","contents_url":"https://api.github.com/repos/secdev/scapy/contents/{+path}","compare_url":"https://api.github.com/repos/secdev/scapy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/secdev/scapy/merges","archive_url":"https://api.github.com/repos/secdev/scapy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/secdev/scapy/downloads","issues_url":"https://api.github.com/repos/secdev/scapy/issues{/number}","pulls_url":"https://api.github.com/repos/secdev/scapy/pulls{/number}","milestones_url":"https://api.github.com/repos/secdev/scapy/milestones{/number}","notifications_url":"https://api.github.com/repos/secdev/scapy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/secdev/scapy/labels{/name}","releases_url":"https://api.github.com/repos/secdev/scapy/releases{/id}","deployments_url":"https://api.github.com/repos/secdev/scapy/deployments","created_at":"2015-10-01T17:06:46Z","updated_at":"2016-03-22T08:42:13Z","pushed_at":"2016-03-22T01:06:10Z","git_url":"git://github.com/secdev/scapy.git","ssh_url":"git@github.com:secdev/scapy.git","clone_url":"https://github.com/secdev/scapy.git","svn_url":"https://github.com/secdev/scapy","homepage":"http://www.secdev.org/projects/scapy/","size":64970,"stargazers_count":303,"watchers_count":303,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":12,"forks":55,"open_issues":12,"watchers":303,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/secdev/scapy/pulls/91"},"html":{"href":"https://github.com/secdev/scapy/pull/91"},"issue":{"href":"https://api.github.com/repos/secdev/scapy/issues/91"},"comments":{"href":"https://api.github.com/repos/secdev/scapy/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/secdev/scapy/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/secdev/scapy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/secdev/scapy/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/secdev/scapy/statuses/c766b155696491ee36a841e1ab697dfb06f13593"}}}}