{"action":"opened","number":940,"pull_request":{"url":"https://api.github.com/repos/cesanta/mongoose/pulls/940","id":197355647,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3MzU1NjQ3","html_url":"https://github.com/cesanta/mongoose/pull/940","diff_url":"https://github.com/cesanta/mongoose/pull/940.diff","patch_url":"https://github.com/cesanta/mongoose/pull/940.patch","issue_url":"https://api.github.com/repos/cesanta/mongoose/issues/940","number":940,"state":"open","locked":false,"title":"Fix pipelining issue with multipart upload","user":{"login":"dg-dboehi","id":40595509,"node_id":"MDQ6VXNlcjQwNTk1NTA5","avatar_url":"https://avatars2.githubusercontent.com/u/40595509?v=4","gravatar_id":"","url":"https://api.github.com/users/dg-dboehi","html_url":"https://github.com/dg-dboehi","followers_url":"https://api.github.com/users/dg-dboehi/followers","following_url":"https://api.github.com/users/dg-dboehi/following{/other_user}","gists_url":"https://api.github.com/users/dg-dboehi/gists{/gist_id}","starred_url":"https://api.github.com/users/dg-dboehi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dg-dboehi/subscriptions","organizations_url":"https://api.github.com/users/dg-dboehi/orgs","repos_url":"https://api.github.com/users/dg-dboehi/repos","events_url":"https://api.github.com/users/dg-dboehi/events{/privacy}","received_events_url":"https://api.github.com/users/dg-dboehi/received_events","type":"User","site_admin":false},"body":"We found a issue with the multipart upload handling, when the streaming functionality is enabled.\r\n\r\nWhen a client uses pipelining, and sends two post requests with multipart data directly after each other,\r\nthe Mongoose server was unable to process the second request. \r\n\r\nWe found that the issue is that the server clears the receive buffer after the first request, and with that deletes part of the second request, which is already in the buffer. \r\n\r\nI've attached both a new test case, as well as a fix for this issue.\r\n\r\n","created_at":"2018-06-26T09:21:24Z","updated_at":"2018-06-26T09:21:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cesanta/mongoose/pulls/940/commits","review_comments_url":"https://api.github.com/repos/cesanta/mongoose/pulls/940/comments","review_comment_url":"https://api.github.com/repos/cesanta/mongoose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cesanta/mongoose/issues/940/comments","statuses_url":"https://api.github.com/repos/cesanta/mongoose/statuses/fa7439a3e1398b8e2a63016536b796a63047e385","head":{"label":"dg-dboehi:fix-pipeline-multipart","ref":"fix-pipeline-multipart","sha":"fa7439a3e1398b8e2a63016536b796a63047e385","user":{"login":"dg-dboehi","id":40595509,"node_id":"MDQ6VXNlcjQwNTk1NTA5","avatar_url":"https://avatars2.githubusercontent.com/u/40595509?v=4","gravatar_id":"","url":"https://api.github.com/users/dg-dboehi","html_url":"https://github.com/dg-dboehi","followers_url":"https://api.github.com/users/dg-dboehi/followers","following_url":"https://api.github.com/users/dg-dboehi/following{/other_user}","gists_url":"https://api.github.com/users/dg-dboehi/gists{/gist_id}","starred_url":"https://api.github.com/users/dg-dboehi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dg-dboehi/subscriptions","organizations_url":"https://api.github.com/users/dg-dboehi/orgs","repos_url":"https://api.github.com/users/dg-dboehi/repos","events_url":"https://api.github.com/users/dg-dboehi/events{/privacy}","received_events_url":"https://api.github.com/users/dg-dboehi/received_events","type":"User","site_admin":false},"repo":{"id":138712243,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg3MTIyNDM=","name":"mongoose","full_name":"dg-dboehi/mongoose","owner":{"login":"dg-dboehi","id":40595509,"node_id":"MDQ6VXNlcjQwNTk1NTA5","avatar_url":"https://avatars2.githubusercontent.com/u/40595509?v=4","gravatar_id":"","url":"https://api.github.com/users/dg-dboehi","html_url":"https://github.com/dg-dboehi","followers_url":"https://api.github.com/users/dg-dboehi/followers","following_url":"https://api.github.com/users/dg-dboehi/following{/other_user}","gists_url":"https://api.github.com/users/dg-dboehi/gists{/gist_id}","starred_url":"https://api.github.com/users/dg-dboehi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dg-dboehi/subscriptions","organizations_url":"https://api.github.com/users/dg-dboehi/orgs","repos_url":"https://api.github.com/users/dg-dboehi/repos","events_url":"https://api.github.com/users/dg-dboehi/events{/privacy}","received_events_url":"https://api.github.com/users/dg-dboehi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dg-dboehi/mongoose","description":"Mongoose Embedded Web Server Library - Mongoose is more than an embedded webserver. It is a multi-protocol embedded networking library with functions including TCP, HTTP client and server, WebSocket client and server,  MQTT client and broker and much more.  ","fork":true,"url":"https://api.github.com/repos/dg-dboehi/mongoose","forks_url":"https://api.github.com/repos/dg-dboehi/mongoose/forks","keys_url":"https://api.github.com/repos/dg-dboehi/mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dg-dboehi/mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dg-dboehi/mongoose/teams","hooks_url":"https://api.github.com/repos/dg-dboehi/mongoose/hooks","issue_events_url":"https://api.github.com/repos/dg-dboehi/mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/dg-dboehi/mongoose/events","assignees_url":"https://api.github.com/repos/dg-dboehi/mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/dg-dboehi/mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/dg-dboehi/mongoose/tags","blobs_url":"https://api.github.com/repos/dg-dboehi/mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dg-dboehi/mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dg-dboehi/mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/dg-dboehi/mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dg-dboehi/mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/dg-dboehi/mongoose/languages","stargazers_url":"https://api.github.com/repos/dg-dboehi/mongoose/stargazers","contributors_url":"https://api.github.com/repos/dg-dboehi/mongoose/contributors","subscribers_url":"https://api.github.com/repos/dg-dboehi/mongoose/subscribers","subscription_url":"https://api.github.com/repos/dg-dboehi/mongoose/subscription","commits_url":"https://api.github.com/repos/dg-dboehi/mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/dg-dboehi/mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/dg-dboehi/mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/dg-dboehi/mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/dg-dboehi/mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/dg-dboehi/mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dg-dboehi/mongoose/merges","archive_url":"https://api.github.com/repos/dg-dboehi/mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dg-dboehi/mongoose/downloads","issues_url":"https://api.github.com/repos/dg-dboehi/mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/dg-dboehi/mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/dg-dboehi/mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/dg-dboehi/mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dg-dboehi/mongoose/labels{/name}","releases_url":"https://api.github.com/repos/dg-dboehi/mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/dg-dboehi/mongoose/deployments","created_at":"2018-06-26T09:01:52Z","updated_at":"2018-06-26T09:01:55Z","pushed_at":"2018-06-26T09:12:18Z","git_url":"git://github.com/dg-dboehi/mongoose.git","ssh_url":"git@github.com:dg-dboehi/mongoose.git","clone_url":"https://github.com/dg-dboehi/mongoose.git","svn_url":"https://github.com/dg-dboehi/mongoose","homepage":"https://www.cesanta.com","size":14903,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cesanta:dev","ref":"dev","sha":"3bbbd41196c976282e63cb5a9e9dc402198ee7fd","user":{"login":"cesanta","id":5111322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMTEzMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/5111322?v=4","gravatar_id":"","url":"https://api.github.com/users/cesanta","html_url":"https://github.com/cesanta","followers_url":"https://api.github.com/users/cesanta/followers","following_url":"https://api.github.com/users/cesanta/following{/other_user}","gists_url":"https://api.github.com/users/cesanta/gists{/gist_id}","starred_url":"https://api.github.com/users/cesanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesanta/subscriptions","organizations_url":"https://api.github.com/users/cesanta/orgs","repos_url":"https://api.github.com/users/cesanta/repos","events_url":"https://api.github.com/users/cesanta/events{/privacy}","received_events_url":"https://api.github.com/users/cesanta/received_events","type":"Organization","site_admin":false},"repo":{"id":5414488,"node_id":"MDEwOlJlcG9zaXRvcnk1NDE0NDg4","name":"mongoose","full_name":"cesanta/mongoose","owner":{"login":"cesanta","id":5111322,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMTEzMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/5111322?v=4","gravatar_id":"","url":"https://api.github.com/users/cesanta","html_url":"https://github.com/cesanta","followers_url":"https://api.github.com/users/cesanta/followers","following_url":"https://api.github.com/users/cesanta/following{/other_user}","gists_url":"https://api.github.com/users/cesanta/gists{/gist_id}","starred_url":"https://api.github.com/users/cesanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesanta/subscriptions","organizations_url":"https://api.github.com/users/cesanta/orgs","repos_url":"https://api.github.com/users/cesanta/repos","events_url":"https://api.github.com/users/cesanta/events{/privacy}","received_events_url":"https://api.github.com/users/cesanta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cesanta/mongoose","description":"Mongoose Embedded Web Server Library - Mongoose is more than an embedded webserver. It is a multi-protocol embedded networking library with functions including TCP, HTTP client and server, WebSocket client and server,  MQTT client and broker and much more.  ","fork":false,"url":"https://api.github.com/repos/cesanta/mongoose","forks_url":"https://api.github.com/repos/cesanta/mongoose/forks","keys_url":"https://api.github.com/repos/cesanta/mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cesanta/mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cesanta/mongoose/teams","hooks_url":"https://api.github.com/repos/cesanta/mongoose/hooks","issue_events_url":"https://api.github.com/repos/cesanta/mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/cesanta/mongoose/events","assignees_url":"https://api.github.com/repos/cesanta/mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/cesanta/mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/cesanta/mongoose/tags","blobs_url":"https://api.github.com/repos/cesanta/mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cesanta/mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cesanta/mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/cesanta/mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cesanta/mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/cesanta/mongoose/languages","stargazers_url":"https://api.github.com/repos/cesanta/mongoose/stargazers","contributors_url":"https://api.github.com/repos/cesanta/mongoose/contributors","subscribers_url":"https://api.github.com/repos/cesanta/mongoose/subscribers","subscription_url":"https://api.github.com/repos/cesanta/mongoose/subscription","commits_url":"https://api.github.com/repos/cesanta/mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/cesanta/mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/cesanta/mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/cesanta/mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/cesanta/mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/cesanta/mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cesanta/mongoose/merges","archive_url":"https://api.github.com/repos/cesanta/mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cesanta/mongoose/downloads","issues_url":"https://api.github.com/repos/cesanta/mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/cesanta/mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/cesanta/mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/cesanta/mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cesanta/mongoose/labels{/name}","releases_url":"https://api.github.com/repos/cesanta/mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/cesanta/mongoose/deployments","created_at":"2012-08-14T15:09:51Z","updated_at":"2018-06-25T15:28:04Z","pushed_at":"2018-06-26T09:09:25Z","git_url":"git://github.com/cesanta/mongoose.git","ssh_url":"git@github.com:cesanta/mongoose.git","clone_url":"https://github.com/cesanta/mongoose.git","svn_url":"https://github.com/cesanta/mongoose","homepage":"https://www.cesanta.com","size":14903,"stargazers_count":4645,"watchers_count":4645,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1352,"mirror_url":null,"archived":false,"open_issues_count":93,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1352,"open_issues":93,"watchers":4645,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cesanta/mongoose/pulls/940"},"html":{"href":"https://github.com/cesanta/mongoose/pull/940"},"issue":{"href":"https://api.github.com/repos/cesanta/mongoose/issues/940"},"comments":{"href":"https://api.github.com/repos/cesanta/mongoose/issues/940/comments"},"review_comments":{"href":"https://api.github.com/repos/cesanta/mongoose/pulls/940/comments"},"review_comment":{"href":"https://api.github.com/repos/cesanta/mongoose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cesanta/mongoose/pulls/940/commits"},"statuses":{"href":"https://api.github.com/repos/cesanta/mongoose/statuses/fa7439a3e1398b8e2a63016536b796a63047e385"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":100,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"dg-dboehi"}}