{"action":"opened","issue":{"url":"https://api.github.com/repos/netty/netty/issues/4664","labels_url":"https://api.github.com/repos/netty/netty/issues/4664/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/4664/comments","events_url":"https://api.github.com/repos/netty/netty/issues/4664/events","html_url":"https://github.com/netty/netty/issues/4664","id":125340639,"number":4664,"title":"Why use SocketChannel.write(ByteBuffer[] srcs, int offset, int length) ? not other?","user":{"login":"879913935","id":6321538,"avatar_url":"https://avatars.githubusercontent.com/u/6321538?v=3","gravatar_id":"","url":"https://api.github.com/users/879913935","html_url":"https://github.com/879913935","followers_url":"https://api.github.com/users/879913935/followers","following_url":"https://api.github.com/users/879913935/following{/other_user}","gists_url":"https://api.github.com/users/879913935/gists{/gist_id}","starred_url":"https://api.github.com/users/879913935/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/879913935/subscriptions","organizations_url":"https://api.github.com/users/879913935/orgs","repos_url":"https://api.github.com/users/879913935/repos","events_url":"https://api.github.com/users/879913935/events{/privacy}","received_events_url":"https://api.github.com/users/879913935/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-07T07:26:03Z","updated_at":"2016-01-07T07:26:03Z","closed_at":null,"body":"![ksidxm xif p_05qsw ox7](https://cloud.githubusercontent.com/assets/6321538/12164493/de05cbe0-b550-11e5-900f-5434ab142302.png)\r\n\r\nIn my applet,I write some code like this:\r\nwhile(true){\r\n    channel.writeAndFlush(msg);\r\n}\r\n\r\nServer-side received slow and network traffic is the same.\r\n\r\nWhen I use nio,not netty,code like this:\r\nwhile(true){\r\n    socketChannel.write(ByteBuffer.wrap(byte[] bytes));\r\n}\r\nServer-side network traffic is busy.\r\n\r\nI found that the method SocketChannel.write(ByteBuffer[] srcs, int offset, int length) has problem.\r\n\r\nif length>16,returned writed bytes = 16*(ByteBuffer of srcs).size()\r\n\r\nI don't konw why ,I hope you can understand:)\r\n"}}