File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
rocketmq-remoting/src/main/java/com/alibaba/rocketmq/remoting/netty Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public void run() {
111
111
while (!this .isStoped ()) {
112
112
try {
113
113
NettyEvent event = this .eventQueue .poll (3000 , TimeUnit .MILLISECONDS );
114
- if (event != null ) {
114
+ if (event != null && listener != null ) {
115
115
switch (event .getType ()) {
116
116
case IDLE :
117
117
listener .onChannelIdle (event .getRemoteAddr (), event .getChannel ());
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ public class NettySystemConfig {
20
20
public static final String SystemPropertyClientAsyncSemaphoreValue = //
21
21
"com.rocketmq.remoting.clientAsyncSemaphoreValue" ;
22
22
public static int ClientAsyncSemaphoreValue = //
23
- Integer .parseInt (System .getProperty (SystemPropertyClientAsyncSemaphoreValue , "128 " ));
23
+ Integer .parseInt (System .getProperty (SystemPropertyClientAsyncSemaphoreValue , "2048 " ));
24
24
25
25
public static final String SystemPropertyClientOnewaySemaphoreValue = //
26
26
"com.rocketmq.remoting.clientOnewaySemaphoreValue" ;
27
27
public static int ClientOnewaySemaphoreValue = //
28
- Integer .parseInt (System .getProperty (SystemPropertyClientOnewaySemaphoreValue , "256 " ));
28
+ Integer .parseInt (System .getProperty (SystemPropertyClientOnewaySemaphoreValue , "2048 " ));
29
29
}
You can’t perform that action at this time.
0 commit comments