{"action":"opened","number":391,"pull_request":{"url":"https://api.github.com/repos/shellinabox/shellinabox/pulls/391","id":84783202,"html_url":"https://github.com/shellinabox/shellinabox/pull/391","diff_url":"https://github.com/shellinabox/shellinabox/pull/391.diff","patch_url":"https://github.com/shellinabox/shellinabox/pull/391.patch","issue_url":"https://api.github.com/repos/shellinabox/shellinabox/issues/391","number":391,"state":"open","locked":false,"title":"Fix a debug check on FreeBSD and probably Linux","user":{"login":"tomtor","id":1104260,"avatar_url":"https://avatars.githubusercontent.com/u/1104260?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtor","html_url":"https://github.com/tomtor","followers_url":"https://api.github.com/users/tomtor/followers","following_url":"https://api.github.com/users/tomtor/following{/other_user}","gists_url":"https://api.github.com/users/tomtor/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtor/subscriptions","organizations_url":"https://api.github.com/users/tomtor/orgs","repos_url":"https://api.github.com/users/tomtor/repos","events_url":"https://api.github.com/users/tomtor/events{/privacy}","received_events_url":"https://api.github.com/users/tomtor/received_events","type":"User","site_admin":false},"body":"On FreeBSD 12.0 I get within a minute:\r\n\r\nCheck failed at libhttp/httpconnection.c:433 in destroyHttpConnection(): !close(http->fd)\r\n\r\nSee also:\r\n\r\nhttps://github.com/shellinabox/shellinabox/issues/389\r\n\r\nI assume that close() fails with ECONNRESET and that we should just check\r\nfor errno != EBADF, which should also be OK for Linux and other systems,\r\nwhich might return EIO in some conditions.\r\n\r\nLinux close(2) manual page:\r\n\r\n\tEBADF\tfd isn't a valid open file descriptor.\r\n\tEINTR\tThe close() call was interrupted by a signal; see signal(7).\r\n\tEIO\tAn I/O error occurred.\r\n\r\nFreeBSD close(2) manual page:\r\n\r\n     [EBADF]            The fd argument is not an active descriptor.\r\n     [EINTR]            An interrupt was received.\r\n     [ENOSPC]           The underlying object did not fit, cached data was\r\n                        lost.\r\n     [ECONNRESET]       The underlying object was a stream socket that was\r\n                        shut down by the peer before all pending data was\r\n                        delivered.\r\n\r\n     In case of any error except EBADF, the supplied file descriptor is\r\n     deallocated and therefore is no longer valid.","created_at":"2016-09-11T10:52:01Z","updated_at":"2016-09-11T10:52:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b298b15ce5b043b0b2a5d314e37f3b8d446b3443","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/shellinabox/shellinabox/pulls/391/commits","review_comments_url":"https://api.github.com/repos/shellinabox/shellinabox/pulls/391/comments","review_comment_url":"https://api.github.com/repos/shellinabox/shellinabox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shellinabox/shellinabox/issues/391/comments","statuses_url":"https://api.github.com/repos/shellinabox/shellinabox/statuses/f40846708824caf3452678d61fc10155acf4f954","head":{"label":"tomtor:freebsd","ref":"freebsd","sha":"f40846708824caf3452678d61fc10155acf4f954","user":{"login":"tomtor","id":1104260,"avatar_url":"https://avatars.githubusercontent.com/u/1104260?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtor","html_url":"https://github.com/tomtor","followers_url":"https://api.github.com/users/tomtor/followers","following_url":"https://api.github.com/users/tomtor/following{/other_user}","gists_url":"https://api.github.com/users/tomtor/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtor/subscriptions","organizations_url":"https://api.github.com/users/tomtor/orgs","repos_url":"https://api.github.com/users/tomtor/repos","events_url":"https://api.github.com/users/tomtor/events{/privacy}","received_events_url":"https://api.github.com/users/tomtor/received_events","type":"User","site_admin":false},"repo":{"id":52513458,"name":"shellinabox","full_name":"tomtor/shellinabox","owner":{"login":"tomtor","id":1104260,"avatar_url":"https://avatars.githubusercontent.com/u/1104260?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtor","html_url":"https://github.com/tomtor","followers_url":"https://api.github.com/users/tomtor/followers","following_url":"https://api.github.com/users/tomtor/following{/other_user}","gists_url":"https://api.github.com/users/tomtor/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtor/subscriptions","organizations_url":"https://api.github.com/users/tomtor/orgs","repos_url":"https://api.github.com/users/tomtor/repos","events_url":"https://api.github.com/users/tomtor/events{/privacy}","received_events_url":"https://api.github.com/users/tomtor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomtor/shellinabox","description":"Unoffical Shell In A Box fork","fork":true,"url":"https://api.github.com/repos/tomtor/shellinabox","forks_url":"https://api.github.com/repos/tomtor/shellinabox/forks","keys_url":"https://api.github.com/repos/tomtor/shellinabox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomtor/shellinabox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomtor/shellinabox/teams","hooks_url":"https://api.github.com/repos/tomtor/shellinabox/hooks","issue_events_url":"https://api.github.com/repos/tomtor/shellinabox/issues/events{/number}","events_url":"https://api.github.com/repos/tomtor/shellinabox/events","assignees_url":"https://api.github.com/repos/tomtor/shellinabox/assignees{/user}","branches_url":"https://api.github.com/repos/tomtor/shellinabox/branches{/branch}","tags_url":"https://api.github.com/repos/tomtor/shellinabox/tags","blobs_url":"https://api.github.com/repos/tomtor/shellinabox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomtor/shellinabox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomtor/shellinabox/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomtor/shellinabox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomtor/shellinabox/statuses/{sha}","languages_url":"https://api.github.com/repos/tomtor/shellinabox/languages","stargazers_url":"https://api.github.com/repos/tomtor/shellinabox/stargazers","contributors_url":"https://api.github.com/repos/tomtor/shellinabox/contributors","subscribers_url":"https://api.github.com/repos/tomtor/shellinabox/subscribers","subscription_url":"https://api.github.com/repos/tomtor/shellinabox/subscription","commits_url":"https://api.github.com/repos/tomtor/shellinabox/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomtor/shellinabox/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomtor/shellinabox/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomtor/shellinabox/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomtor/shellinabox/contents/{+path}","compare_url":"https://api.github.com/repos/tomtor/shellinabox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomtor/shellinabox/merges","archive_url":"https://api.github.com/repos/tomtor/shellinabox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomtor/shellinabox/downloads","issues_url":"https://api.github.com/repos/tomtor/shellinabox/issues{/number}","pulls_url":"https://api.github.com/repos/tomtor/shellinabox/pulls{/number}","milestones_url":"https://api.github.com/repos/tomtor/shellinabox/milestones{/number}","notifications_url":"https://api.github.com/repos/tomtor/shellinabox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomtor/shellinabox/labels{/name}","releases_url":"https://api.github.com/repos/tomtor/shellinabox/releases{/id}","deployments_url":"https://api.github.com/repos/tomtor/shellinabox/deployments","created_at":"2016-02-25T09:39:59Z","updated_at":"2016-02-25T09:40:01Z","pushed_at":"2016-09-11T10:50:20Z","git_url":"git://github.com/tomtor/shellinabox.git","ssh_url":"git@github.com:tomtor/shellinabox.git","clone_url":"https://github.com/tomtor/shellinabox.git","svn_url":"https://github.com/tomtor/shellinabox","homepage":"https://code.google.com/p/shellinabox/","size":4417,"stargazers_count":0,"watchers_count":0,"language":"C","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":0,"default_branch":"master"}},"base":{"label":"shellinabox:master","ref":"master","sha":"e6c25e84bc662797c7382500f136bb74874c2500","user":{"login":"shellinabox","id":11277827,"avatar_url":"https://avatars.githubusercontent.com/u/11277827?v=3","gravatar_id":"","url":"https://api.github.com/users/shellinabox","html_url":"https://github.com/shellinabox","followers_url":"https://api.github.com/users/shellinabox/followers","following_url":"https://api.github.com/users/shellinabox/following{/other_user}","gists_url":"https://api.github.com/users/shellinabox/gists{/gist_id}","starred_url":"https://api.github.com/users/shellinabox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellinabox/subscriptions","organizations_url":"https://api.github.com/users/shellinabox/orgs","repos_url":"https://api.github.com/users/shellinabox/repos","events_url":"https://api.github.com/users/shellinabox/events{/privacy}","received_events_url":"https://api.github.com/users/shellinabox/received_events","type":"Organization","site_admin":false},"repo":{"id":31564322,"name":"shellinabox","full_name":"shellinabox/shellinabox","owner":{"login":"shellinabox","id":11277827,"avatar_url":"https://avatars.githubusercontent.com/u/11277827?v=3","gravatar_id":"","url":"https://api.github.com/users/shellinabox","html_url":"https://github.com/shellinabox","followers_url":"https://api.github.com/users/shellinabox/followers","following_url":"https://api.github.com/users/shellinabox/following{/other_user}","gists_url":"https://api.github.com/users/shellinabox/gists{/gist_id}","starred_url":"https://api.github.com/users/shellinabox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shellinabox/subscriptions","organizations_url":"https://api.github.com/users/shellinabox/orgs","repos_url":"https://api.github.com/users/shellinabox/repos","events_url":"https://api.github.com/users/shellinabox/events{/privacy}","received_events_url":"https://api.github.com/users/shellinabox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shellinabox/shellinabox","description":"Unoffical Shell In A Box fork","fork":false,"url":"https://api.github.com/repos/shellinabox/shellinabox","forks_url":"https://api.github.com/repos/shellinabox/shellinabox/forks","keys_url":"https://api.github.com/repos/shellinabox/shellinabox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shellinabox/shellinabox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shellinabox/shellinabox/teams","hooks_url":"https://api.github.com/repos/shellinabox/shellinabox/hooks","issue_events_url":"https://api.github.com/repos/shellinabox/shellinabox/issues/events{/number}","events_url":"https://api.github.com/repos/shellinabox/shellinabox/events","assignees_url":"https://api.github.com/repos/shellinabox/shellinabox/assignees{/user}","branches_url":"https://api.github.com/repos/shellinabox/shellinabox/branches{/branch}","tags_url":"https://api.github.com/repos/shellinabox/shellinabox/tags","blobs_url":"https://api.github.com/repos/shellinabox/shellinabox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shellinabox/shellinabox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shellinabox/shellinabox/git/refs{/sha}","trees_url":"https://api.github.com/repos/shellinabox/shellinabox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shellinabox/shellinabox/statuses/{sha}","languages_url":"https://api.github.com/repos/shellinabox/shellinabox/languages","stargazers_url":"https://api.github.com/repos/shellinabox/shellinabox/stargazers","contributors_url":"https://api.github.com/repos/shellinabox/shellinabox/contributors","subscribers_url":"https://api.github.com/repos/shellinabox/shellinabox/subscribers","subscription_url":"https://api.github.com/repos/shellinabox/shellinabox/subscription","commits_url":"https://api.github.com/repos/shellinabox/shellinabox/commits{/sha}","git_commits_url":"https://api.github.com/repos/shellinabox/shellinabox/git/commits{/sha}","comments_url":"https://api.github.com/repos/shellinabox/shellinabox/comments{/number}","issue_comment_url":"https://api.github.com/repos/shellinabox/shellinabox/issues/comments{/number}","contents_url":"https://api.github.com/repos/shellinabox/shellinabox/contents/{+path}","compare_url":"https://api.github.com/repos/shellinabox/shellinabox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shellinabox/shellinabox/merges","archive_url":"https://api.github.com/repos/shellinabox/shellinabox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shellinabox/shellinabox/downloads","issues_url":"https://api.github.com/repos/shellinabox/shellinabox/issues{/number}","pulls_url":"https://api.github.com/repos/shellinabox/shellinabox/pulls{/number}","milestones_url":"https://api.github.com/repos/shellinabox/shellinabox/milestones{/number}","notifications_url":"https://api.github.com/repos/shellinabox/shellinabox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shellinabox/shellinabox/labels{/name}","releases_url":"https://api.github.com/repos/shellinabox/shellinabox/releases{/id}","deployments_url":"https://api.github.com/repos/shellinabox/shellinabox/deployments","created_at":"2015-03-02T21:32:11Z","updated_at":"2016-09-10T00:18:14Z","pushed_at":"2016-09-11T10:52:01Z","git_url":"git://github.com/shellinabox/shellinabox.git","ssh_url":"git@github.com:shellinabox/shellinabox.git","clone_url":"https://github.com/shellinabox/shellinabox.git","svn_url":"https://github.com/shellinabox/shellinabox","homepage":"https://code.google.com/p/shellinabox/","size":4640,"stargazers_count":420,"watchers_count":420,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":118,"forks":90,"open_issues":118,"watchers":420,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shellinabox/shellinabox/pulls/391"},"html":{"href":"https://github.com/shellinabox/shellinabox/pull/391"},"issue":{"href":"https://api.github.com/repos/shellinabox/shellinabox/issues/391"},"comments":{"href":"https://api.github.com/repos/shellinabox/shellinabox/issues/391/comments"},"review_comments":{"href":"https://api.github.com/repos/shellinabox/shellinabox/pulls/391/comments"},"review_comment":{"href":"https://api.github.com/repos/shellinabox/shellinabox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shellinabox/shellinabox/pulls/391/commits"},"statuses":{"href":"https://api.github.com/repos/shellinabox/shellinabox/statuses/f40846708824caf3452678d61fc10155acf4f954"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"tomtor"}}