{"action":"created","issue":{"url":"https://api.github.com/repos/alexhultman/node-lws/issues/39","repository_url":"https://api.github.com/repos/alexhultman/node-lws","labels_url":"https://api.github.com/repos/alexhultman/node-lws/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/alexhultman/node-lws/issues/39/comments","events_url":"https://api.github.com/repos/alexhultman/node-lws/issues/39/events","html_url":"https://github.com/alexhultman/node-lws/issues/39","id":141447036,"number":39,"title":"Sending a large buffer is unreasonably slow","user":{"login":"alexhultman","id":3397140,"avatar_url":"https://avatars.githubusercontent.com/u/3397140?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhultman","html_url":"https://github.com/alexhultman","followers_url":"https://api.github.com/users/alexhultman/followers","following_url":"https://api.github.com/users/alexhultman/following{/other_user}","gists_url":"https://api.github.com/users/alexhultman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhultman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhultman/subscriptions","organizations_url":"https://api.github.com/users/alexhultman/orgs","repos_url":"https://api.github.com/users/alexhultman/repos","events_url":"https://api.github.com/users/alexhultman/events{/privacy}","received_events_url":"https://api.github.com/users/alexhultman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alexhultman/node-lws/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/alexhultman/node-lws/labels/libwebsockets","name":"libwebsockets","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-17T01:11:49Z","updated_at":"2016-03-18T07:25:19Z","closed_at":null,"body":"When the buffer doesn't fit in a single send buffer, it takes forever to send it. Probably needs patches to the libuv libwebsockets backend to fix."},"comment":{"url":"https://api.github.com/repos/alexhultman/node-lws/issues/comments/198238821","html_url":"https://github.com/alexhultman/node-lws/issues/39#issuecomment-198238821","issue_url":"https://api.github.com/repos/alexhultman/node-lws/issues/39","id":198238821,"user":{"login":"alexhultman","id":3397140,"avatar_url":"https://avatars.githubusercontent.com/u/3397140?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhultman","html_url":"https://github.com/alexhultman","followers_url":"https://api.github.com/users/alexhultman/followers","following_url":"https://api.github.com/users/alexhultman/following{/other_user}","gists_url":"https://api.github.com/users/alexhultman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhultman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhultman/subscriptions","organizations_url":"https://api.github.com/users/alexhultman/orgs","repos_url":"https://api.github.com/users/alexhultman/repos","events_url":"https://api.github.com/users/alexhultman/events{/privacy}","received_events_url":"https://api.github.com/users/alexhultman/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T07:25:19Z","updated_at":"2016-03-18T07:25:19Z","body":"0.7.1 will be faster, but the fastest is to just use the 'fragment' event and sendFragment. It's hard to get any faster when doing this huge buffering. You should also do multiple runs and average the results. And you might need to have multiple client processes and one server process to really stress the server."}}