{"action":"created","issue":{"url":"https://api.github.com/repos/daokoder/dao-modules/issues/57","labels_url":"https://api.github.com/repos/daokoder/dao-modules/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/daokoder/dao-modules/issues/57/comments","events_url":"https://api.github.com/repos/daokoder/dao-modules/issues/57/events","html_url":"https://github.com/daokoder/dao-modules/issues/57","id":94446047,"number":57,"title":"Switch the backend of web.http from Ciwetweb to Marten?","user":{"login":"daokoder","id":1860002,"avatar_url":"https://avatars.githubusercontent.com/u/1860002?v=3","gravatar_id":"","url":"https://api.github.com/users/daokoder","html_url":"https://github.com/daokoder","followers_url":"https://api.github.com/users/daokoder/followers","following_url":"https://api.github.com/users/daokoder/following{/other_user}","gists_url":"https://api.github.com/users/daokoder/gists{/gist_id}","starred_url":"https://api.github.com/users/daokoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daokoder/subscriptions","organizations_url":"https://api.github.com/users/daokoder/orgs","repos_url":"https://api.github.com/users/daokoder/repos","events_url":"https://api.github.com/users/daokoder/events{/privacy}","received_events_url":"https://api.github.com/users/daokoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-11T06:48:26Z","updated_at":"2015-07-11T07:00:49Z","closed_at":null,"body":"In the recent issue #56, I found that the problem occurs when there is no `Content-Length:` in the response header. I begin to believe it is a Civetweb bug, after I reproduced the bug by removing the `Content-Length:` part from `civetweb/examples/post.c`. And interestingly, Mongoose/Marten has no such problem. \r\n\r\nWhen I made the switch from Marten to Civetweb, I worried that the later could actually be less stable than Marten, given that I already had experienced an issue after the switch. The issue was that I cannot create a hidden window to get an OpenGL context within the request handle, but I wasn't sure if it was really a bug of civetweb, since creating gui window in non-main thread has always been tricky in many gui library.\r\n\r\nMore surprisingly, the server can support persistent connection (with `enable_keep_alive` option) without problem when compiled with Marten!\r\n\r\nI am wondering if we should switch back to Marten, after all, we haven't experience any real problem with it yet. Another reason is that, the code size has doubled from Mongoose to Civetweb, yet I don't see any significant feature that Civetweb has over Mongoose/Marten."},"comment":{"url":"https://api.github.com/repos/daokoder/dao-modules/issues/comments/120588489","html_url":"https://github.com/daokoder/dao-modules/issues/57#issuecomment-120588489","issue_url":"https://api.github.com/repos/daokoder/dao-modules/issues/57","id":120588489,"user":{"login":"dumblob","id":2451044,"avatar_url":"https://avatars.githubusercontent.com/u/2451044?v=3","gravatar_id":"","url":"https://api.github.com/users/dumblob","html_url":"https://github.com/dumblob","followers_url":"https://api.github.com/users/dumblob/followers","following_url":"https://api.github.com/users/dumblob/following{/other_user}","gists_url":"https://api.github.com/users/dumblob/gists{/gist_id}","starred_url":"https://api.github.com/users/dumblob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumblob/subscriptions","organizations_url":"https://api.github.com/users/dumblob/orgs","repos_url":"https://api.github.com/users/dumblob/repos","events_url":"https://api.github.com/users/dumblob/events{/privacy}","received_events_url":"https://api.github.com/users/dumblob/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T07:00:49Z","updated_at":"2015-07-11T07:00:49Z","body":"Regarding `Content-Length:`, it's a \"[feature](https://github.com/sunsetbrew/civetweb/blob/master/docs/UserManual.md#enable_keep_alive-no)\", not a bug :cry:. I have no idea though why this requirement is there (I didn't read RFC standard yet)."}}