{"action":"created","issue":{"url":"https://api.github.com/repos/draken1/telefield_server_m2m_7th/issues/16","labels_url":"https://api.github.com/repos/draken1/telefield_server_m2m_7th/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/draken1/telefield_server_m2m_7th/issues/16/comments","events_url":"https://api.github.com/repos/draken1/telefield_server_m2m_7th/issues/16/events","html_url":"https://github.com/draken1/telefield_server_m2m_7th/issues/16","id":53979306,"number":16,"title":"deploy_1.0.0 클라이언트-> m2m 전송시 ack issue","user":{"login":"draken1","id":4435353,"avatar_url":"https://avatars.githubusercontent.com/u/4435353?v=3","gravatar_id":"","url":"https://api.github.com/users/draken1","html_url":"https://github.com/draken1","followers_url":"https://api.github.com/users/draken1/followers","following_url":"https://api.github.com/users/draken1/following{/other_user}","gists_url":"https://api.github.com/users/draken1/gists{/gist_id}","starred_url":"https://api.github.com/users/draken1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draken1/subscriptions","organizations_url":"https://api.github.com/users/draken1/orgs","repos_url":"https://api.github.com/users/draken1/repos","events_url":"https://api.github.com/users/draken1/events{/privacy}","received_events_url":"https://api.github.com/users/draken1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-11T02:31:29Z","updated_at":"2015-01-11T03:28:11Z","closed_at":null,"body":"```\r\nnioEventLoopGroup-3-1> [2015-01-11 11:25:46,823] [LoggingHandler] [100] [INFO] [id: 0x0d4e9105, /110.70.26.213:3065 => /192.168.0.2:8088] RECEIVED(68B)\r\n         +-------------------------------------------------+\r\n         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |\r\n+--------+-------------------------------------------------+----------------+\r\n|00000000| 02 00 20 0b 30 31 30 32 37 31 35 30 33 39 30 00 |.. .01027150390.|\r\n|00000010| 00 15 8d 00 00 57 70 58 01 00 54 b1 df 12 03 01 |.....WpX..T.....|\r\n|00000020| 13 03 02 00 20 0b 30 31 30 32 37 31 35 30 33 39 |.... .0102715039|\r\n|00000030| 30 00 00 15 8d 00 00 57 70 58 01 00 54 b1 df 12 |0......WpX..T...|\r\n|00000040| 03 01 13 03                                     |....            |\r\n+--------+-------------------------------------------------+----------------+ \r\nnioEventLoopGroup-3-1> [2015-01-11 11:25:46,824] [LoggingHandler] [100] [INFO] [id: 0x0d4e9105, /110.70.26.213:3065 => /192.168.0.2:8088] WRITE(68B)\r\n         +-------------------------------------------------+\r\n         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |\r\n+--------+-------------------------------------------------+----------------+\r\n|00000000| 02 00 20 8b 30 31 30 32 37 31 35 30 33 39 30 00 |.. .01027150390.|\r\n|00000010| 00 15 8d 00 00 57 70 58 01 00 54 b1 df 12 03 01 |.....WpX..T.....|\r\n|00000020| 13 03 02 00 20 0b 30 31 30 32 37 31 35 30 33 39 |.... .0102715039|\r\n|00000030| 30 00 00 15 8d 00 00 57 70 58 01 00 54 b1 df 12 |0......WpX..T...|\r\n|00000040| 03 01 13 03                                     |....            |\r\n+--------+-------------------------------------------------+----------------+ \r\nnioEventLoopGroup-3-1> [2015-01-11 11:25:46,824] [LoggingHandler] [100] [INFO] [id: 0x0d4e9105, /110.70.26.213:3065 => /192.168.0.2:8088] FLUSH \r\nstart_packet : 2\r\npacket_length : 32\r\nnioEventLoopGroup-3-1> [2015-01-11 11:26:03,036] [LoggingHandler] [100] [INFO] [id: 0x0d4e9105, /110.70.26.213:3065 :> /192.168.0.2:8088] INACTIVE \r\nnioEventLoopGroup-3-1> [2015-01-11 11:26:03,037] [LoggingHandler] [100] [INFO] [id: 0x0d4e9105, /110.70.26.213:3065 :> /192.168.0.2:8088] UNREGISTERED \r\nnioEventLoopGroup-3-1> [2015-01-11 11:26:13,950] [M2MSocketReceiveHandler] [134] [WARN] readtimeout \r\nio.netty.handler.timeout.ReadTimeoutException\r\nnioEventLoopGroup-3-1> [2015-01-11 11:26:13,950] [LoggingHandler] [100] [INFO] [id: 0x774877e3, /110.70.26.213:56831 => /192.168.0.2:8088] CLOSE() \r\nnioEventLoopGroup-3-1> [2015-01-11 11:26:13,951] [LoggingHandler] [100] [INFO] [id: 0x774877e3, /110.70.26.213:56831 :> /192.168.0.2:8088] INACTIVE \r\nnioEventLoopGroup-3-1> [2015-01-11 11:26:13,951] [LoggingHandler] [100] [INFO] [id: 0x774877e3, /110.70.26.213:56831 :> /192.168.0.2:8088] UNREGISTERED \r\n\r\n\r\n```.\r\n\r\n\r\n클라이언트쪽 로그 \r\n 11:25:22,625 , 11:25:27,797 두번보낸걸로 찍힘\r\n\r\nm2m 쪽 로그\r\n11:25:46,823 , 11:25:46,824  두번온걸로 찍히고 패킷이 위상황과 같이옴"},"comment":{"url":"https://api.github.com/repos/draken1/telefield_server_m2m_7th/issues/comments/69482188","html_url":"https://github.com/draken1/telefield_server_m2m_7th/issues/16#issuecomment-69482188","issue_url":"https://api.github.com/repos/draken1/telefield_server_m2m_7th/issues/16","id":69482188,"user":{"login":"draken1","id":4435353,"avatar_url":"https://avatars.githubusercontent.com/u/4435353?v=3","gravatar_id":"","url":"https://api.github.com/users/draken1","html_url":"https://github.com/draken1","followers_url":"https://api.github.com/users/draken1/followers","following_url":"https://api.github.com/users/draken1/following{/other_user}","gists_url":"https://api.github.com/users/draken1/gists{/gist_id}","starred_url":"https://api.github.com/users/draken1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draken1/subscriptions","organizations_url":"https://api.github.com/users/draken1/orgs","repos_url":"https://api.github.com/users/draken1/repos","events_url":"https://api.github.com/users/draken1/events{/privacy}","received_events_url":"https://api.github.com/users/draken1/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T03:28:11Z","updated_at":"2015-01-11T03:28:11Z","body":"\r\n예를 들어 socket.write() 메서드를 사용하여 1k 데이터를 전송하면 \r\n\r\n\r\n\r\n\r\n\r\n기본적으로 네트워크에서는 데이터가 쪼개져서 들어올 수 있습니다.\r\n\r\n\r\n\r\n\r\n\r\n그래서 디코더에서 데이터가 다 들어왔는지 체크하는 로직이 들어가야 할것 같네요. \r\n\r\n\r\n\r\n\r\n\r\nio.netty.example.factorial 예제의 BigIntegerDecoder를 참고하시면 됩니다. \r\n\r\n\r\n\r\n\r\n\r\n기대하는 데이터가 완성 되지 않았다면 아래와 같이 다음 디코드 이벤트를 기다리도록 할 수 있습니다.\r\n\r\nin.resetReaderIndex();\r\n\r\n\r\n\r\nreturn;\r\n\r\n\r\n\r\n\r\n위와 같은 코드가 작성되면 SocketServerNettyHandler로 ByteBuf가 넘어가지 않습니다.\r\n\r\n\r\n\r\n\r\n즉, SocketServerNettyHandler까지 이벤트가 도달하지 않습니다.\r\n\r\n\r\n\r\n2014년 12월 31일 오전 9:40, Youngjun Son <amar...@gmail.com>님이 작성:\r\n\r\n\r\n\r\n- 받은메일 표시 -\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n-- \r\n이 메일은 Google 그룹스 'Netty Korean User Group' 그룹에 가입한 분들에게 전송되는 메시지입니다.\r\n이 그룹에서 탈퇴하고 더 이상 이메일을 받지 않으려면 netty-ko+u...@googlegroups.com에 이메일을 보내세요.\r\n웹에서 이 토론을 보려면 https://groups.google.com/d/msgid/netty-ko/1ed0933e-6f2a-4f18-b2dc-d4bc0bf2683e%40googlegroups.com을(를) 방문하세요.\r\n더 많은 옵션을 보려면 https://groups.google.com/d/optout을(를) 방문하세요.\r\n"}}