-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
port io.netty.handler.traffic #8
Labels
Projects
Comments
ps5mh
pushed a commit
to ps5mh/SpanNetty
that referenced
this issue
May 18, 2021
#0 0x00007f38aa5bae97 in raise () from ./libs/dslib64/libc.so.6 cuteant#1 0x00007f38aa5bc801 in abort () from ./libs/dslib64/libc.so.6 cuteant#2 0x00007f38aa5ac39a in ?? () from ./libs/dslib64/libc.so.6 cuteant#3 0x00007f38aa5ac412 in __assert_fail () from ./libs/dslib64/libc.so.6 cuteant#4 0x00007f38a1d5c709 in uv__check_before_write (stream=<value optimized out>, nbufs=<value optimized out>, send_handle=<value optimized out>) at src/unix/stream.c:1406 cuteant#5 0x00007f38a1d5d2d1 in uv_write2 (req=0x7f37b409dee0, stream=0x7f37b40b1780, bufs=0x7f37b409dfa0, nbufs=0, send_handle=0x0, cb= 0x7f38b1c63270 <ReversePInvokeWrapper_WriteRequest_WriteCallback_m0557B9BF6E7D0302F9C3522A11DC9D15633C2A89>) at src/unix/stream.c:1450 cuteant#6 0x00007f38b41cd88c in WriteRequest_DoWrite_m5E3DB5AFFF51F144B0368167BC4D56388C3C89AB () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.Libuv.cpp:18569 cuteant#7 0x00007f38b3fe7a87 in AbstractUnsafe_Flush0_m8789C8B35CB95DEFD19BFAECBEF1AC0DDFC9100C_gshared () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/Generics3.cpp:29 cuteant#8 0x00007f38b37ea410 in AbstractChannelHandlerContext_InvokeFlush0_m315ED5444092356CF8D49E0DC96ECE5DE41D5EC3 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:117 cuteant#9 0x00007f38b37ea1f6 in AbstractChannelHandlerContext_Flush_m6189A54E788B9905D05CCBB41E45D95158B5FDCC () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:19583 cuteant#10 0x00007f38b37ea410 in AbstractChannelHandlerContext_InvokeFlush0_m315ED5444092356CF8D49E0DC96ECE5DE41D5EC3 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:117 cuteant#11 0x00007f38b37ea540 in AbstractChannelHandlerContext_WriteAndFlushAsync_mF86F8D96554002C551D28BF043D95D707BC08717 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:19669 cuteant#12 0x00007f38b3065534 in WebSocket08FrameDecoder_ProtocolViolation_mA47C9F0042F1DFBB78BEE29427749F65020296BC () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Codecs.Http3.cpp:138 cuteant#13 0x00007f38b30607a3 in ProtocolViolationHelper_ProtocolViolation_InvalidCloseFrameStatusCode_m46F544FA22CBCD3CAEBCC4BE598F0728FFBEFDD3 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Codecs.Http3.cpp:33558 cuteant#14 0x00007f38b3064ef2 in WebSocket08FrameDecoder_CheckCloseFrameBody_m03EDB1712E9AC1110E0EF16709B64B11419BB565 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Codecs.Http3.cpp:36977 cuteant#15 0x00007f38b3064418 in WebSocket08FrameDecoder_Decode_mA235D929F48E7F07916C9623DFC53FF9EFE2BD44 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Codecs.Http3.cpp:36288 cuteant#16 0x00007f38b4cc44f6 in ByteToMessageDecoder_DecodeRemovalReentryProtection_mE313F3B0F1D995D33EC856455B4463D71A936A92 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Codecs.cpp:29 cuteant#17 0x00007f38b4cc427f in ByteToMessageDecoder_CallDecode_m7B4C77C942897FD6072C37B25A4B42CE9B80E0B4 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Codecs.cpp:12602 cuteant#18 0x00007f38b4cc31c5 in ByteToMessageDecoder_ChannelRead_m38C11B338224E38B8806E39308BCEF16A59377D0 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Codecs.cpp:29 cuteant#19 0x00007f38b37e70d3 in AbstractChannelHandlerContext_InvokeChannelRead_m257D1BCA8C2303A0EFBF144682541BE686E2C0FB () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:171 cuteant#20 0x00007f38b37e6cf6 in AbstractChannelHandlerContext_FireChannelRead_m400B1E24D39C6BF539B80CFD9BF086DE6D33B478 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:17946 cuteant#21 0x00007f38b37e70d3 in AbstractChannelHandlerContext_InvokeChannelRead_m257D1BCA8C2303A0EFBF144682541BE686E2C0FB () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:171 cuteant#22 0x00007f38b37e6cf6 in AbstractChannelHandlerContext_FireChannelRead_m400B1E24D39C6BF539B80CFD9BF086DE6D33B478 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:17946 cuteant#23 0x00007f38b37e70d3 in AbstractChannelHandlerContext_InvokeChannelRead_m257D1BCA8C2303A0EFBF144682541BE686E2C0FB () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:171 cuteant#24 0x00007f38b37fc5ca in DefaultChannelPipeline_FireChannelRead_m925805D08EAFBE43E658FD5081FBA9FF56437388 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.cpp:35399 cuteant#25 0x00007f38b3d2aef4 in NativeChannelUnsafe_DotNetty_Transport_Libuv_INativeUnsafe_FinishRead_m375671B6A1D5E51A9D97DA36554230A20F9D2602_gshared () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/Generics4.cpp:105 cuteant#26 0x00007f38b41cb920 in Tcp_OnReadCallback_m70098DB44E05E84F2A47BAC4D5BA74D0344691E5 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.Libuv.cpp:152 cuteant#27 0x00007f38b41cb370 in Tcp_OnReadCallback_m808DD7A04EBEFE99490E3685C67AF50F5795DC70 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.Libuv.cpp:22815 cuteant#28 0x00007f38b1c6310d in ReversePInvokeWrapper_Tcp_ReadCallback_mD23F315A869EAAA83C41F368BB253675BF0F56E8 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.Libuv.cpp:22564 cuteant#29 0x00007f38a1d5de1c in uv__read (stream=0x7f37b40b1780) at src/unix/stream.c:1249 cuteant#30 0x00007f38a1d5e2fc in uv__stream_io (loop=<value optimized out>, w=0x7f37b40b1808, events=<value optimized out>) at src/unix/stream.c:1316 cuteant#31 0x00007f38a1d6348b in uv__io_poll (loop=0x7f38c59e32d0, timeout=<value optimized out>) at src/unix/linux-core.c:462 cuteant#32 0x00007f38a1d5425d in uv_run (loop=0x7f38c59e32d0, mode=UV_RUN_DEFAULT) at src/unix/core.c:389 cuteant#33 0x00007f38b41c0feb in Loop_Run_mD40BED834B034818E35DF813A8BFE9F59B391EEE () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.Libuv.cpp:19224 cuteant#34 0x00007f38b41c0c21 in LoopExecutor_StartLoop_m7FFA9042246B92D46F7C853DF0837EDC2F249327 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.Libuv.cpp:15178 cuteant#35 0x00007f38b4a552bb in Action_1_Invoke_mB86FC1B303E77C41ED0E94FC3592A9CF8DA571D5_gshared () from ./libs/libil2cpp.so cuteant#36 0x00007f38b396c7ff in Task_Execute_mF91032F33896912C3A3CC6A568220EBC5D439CFF () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:41 cuteant#37 0x00007f38b3edd748 in ContextCallback_Invoke_m76E65E7A67AA99858554F451E0F78E22B6478998 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cpp/il2cpp/libil2cpp/vm/ClassInlines.h:47 cuteant#38 0x00007f38b3ee058d in ExecutionContext_RunInternal_m5BF955CE8B04D9A7C959B9011579CC0FABD5FC56 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib34.cpp:17818 cuteant#39 0x00007f38b396cef2 in Task_ExecuteWithThreadLocal_mFF23F3F9C0796B0EE2AC70CB51AD7D2A2867D733 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:21227 cuteant#40 0x00007f38b3967326 in Task_ExecuteEntry_mA04E6FA3370CA2AB19B6AB209E44E993B14621F1 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:21095 cuteant#41 0x00007f38b3966117 in Task_ScheduleAndStart_m7A3334C89BD4B47370D0A3CAE575EA54CCA01AEF () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:63 cuteant#42 0x00007f38b396a073 in Task_InternalStartNew_mC0053D3F586953AC3989875B67F9D60947C68BEC () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:18425 cuteant#43 0x00007f38b39755af in TaskFactory_StartNew_m6CDCE8D4C95E63EA03B6E61D9A4A972782AE9468 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:29310 cuteant#44 0x00007f38b41c0b18 in LoopExecutor_Run_m80B0A9F2D9D3E0620732A2FFFCF16EAF3EE79683 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Transport.Libuv.cpp:15117 cuteant#45 0x00007f38b3ae44eb in XParameterizedThreadStart_Invoke_m5D0E9B45DAF507EE672864C9C0A2BC882FDCB1FE () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Common.cpp:28990 cuteant#46 0x00007f38b3ae4d2a in U3CU3Ec__DisplayClass13_0_U3CCreateLongRunningTaskU3Eb__0_mBA8830C3811D655E44829D9F1E09491F90309A3A () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/SpanNetty.Common.cpp:29481 cuteant#47 0x00007f38b34c96c8 in Action_Invoke_mC8D676E5DDF967EC5D23DD0E96FB52AA499817FD () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cpp/il2cpp/libil2cpp/vm/ClassInlines.h:47 ---Type <return> to continue, or q <return> to quit--- cuteant#48 0x00007f38b396c7ff in Task_Execute_mF91032F33896912C3A3CC6A568220EBC5D439CFF () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:41 cuteant#49 0x00007f38b396cefc in Task_ExecuteWithThreadLocal_mFF23F3F9C0796B0EE2AC70CB51AD7D2A2867D733 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:21170 cuteant#50 0x00007f38b3967326 in Task_ExecuteEntry_mA04E6FA3370CA2AB19B6AB209E44E993B14621F1 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib35.cpp:21095 cuteant#51 0x00007f38b3ee5d28 in ParameterizedThreadStart_Invoke_m5A5DFBAD0D99A39DF7ADA9F75D97B068A8809C14 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cpp/il2cpp/libil2cpp/vm/ClassInlines.h:47 cuteant#52 0x00007f38b3ee5d5b in ParameterizedThreadStart_Invoke_m5A5DFBAD0D99A39DF7ADA9F75D97B068A8809C14 () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/mscorlib34.cpp:23771 cuteant#53 0x00007f38b19ed9d3 in RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cppOutput/Il2CppInvokerTable.cpp:143360 cuteant#54 0x00007f38b1d18980 in il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cpp/il2cpp/libil2cpp/vm/Runtime.cpp:506 cuteant#55 0x00007f38b1cef3b9 in il2cpp::icalls::mscorlib::System::Threading::ThreadStart(void*) () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/System.Threading/Thread.cpp:157 cuteant#56 0x00007f38b1ce1e91 in il2cpp::os::Thread::RunWrapper(void*) () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cpp/il2cpp/libil2cpp/os/Thread.cpp:175 cuteant#57 0x00007f38b1cdfb2b in il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) () at /home/ubuntu/workspace/p-a6fe5c2e75954a89b1a996fb08c582c3/src/sgame/world/dedicatedsvrforai/il2cpp/il2cpp/il2cpp/libil2cpp/os/Posix/ThreadImpl.cpp:105 cuteant#58 0x00007f38b96af6db in start_thread () from ./libs/dslib64/libpthread.so.0 cuteant#59 0x00007f38aa69d88f in clone () from ./libs/dslib64/libc.so.6 (gdb)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Implementation of a Traffic Shaping Handler and Dynamic Statistics.
The main goal of this package is to allow you to shape the traffic (bandwidth limitation), but also to get statistics on how many bytes are read or written. Both functions can be active or inactive (traffic or statistics).
Two classes implement this behavior:
Both inbound and outbound traffic can be shaped independently. This is done by either passing in the desired limiting values to the constructors of both the Channel and Global traffic shaping handlers, or by calling the configure method on the AbstractTrafficShapingHandler. A value of 0 for either parameter indicates that there should be no limitation. This allows you to monitor the incoming and outgoing traffic without shaping.
To activate or deactivate the statistics, you can adjust the delay to a low (suggested not less than 200ms for efficiency reasons) or a high value (let say 24H in millisecond is huge enough to not get the problem) or even using 0 which means no computation will be done.
If you want to do anything with these statistics, just override the doAccounting method.
This interval can be changed either from the method configure in AbstractTrafficShapingHandler or directly using the method configure of TrafficCounter.
Note that a new ChannelTrafficShapingHandler must be created for each new channel, but only one GlobalTrafficShapingHandler must be created for all channels.
Note also that you can create different GlobalTrafficShapingHandler if you want to separate classes of channels (for instance either from business point of view or from bind address point of view).
io.netty.handler.traffic
The text was updated successfully, but these errors were encountered: