Commit 7b35960
committed
Reduce channel max to 2047
Max number of channels has been reduced from unlimited to 2048 as of
RabbitMQ 3.7.5. This is to avoid applications that leak channels to
starve the broker resources. 2048 has been picked up scientifically:
more than 1 K channels per connection is hard to justify, so we doubled
the value to leave existing applications some room.
Java client uses 2047 as it uses channel 0 for negotiation and error
handling.
Part of rabbitmq/rabbitmq-server#1593.
Fixes #3661 parent 0427cfd commit 7b35960
File tree
2 files changed
+10
-2
lines changed- src
- main/java/com/rabbitmq/client
- test/java/com/rabbitmq/client/test
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
122 | 128 | | |
0 commit comments