We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faa8e07 commit 848b335Copy full SHA for 848b335
src/main/java/org/fluentd/logger/sender/RawSocketSender.java
@@ -165,8 +165,8 @@ private synchronized boolean send(byte[] bytes) {
165
LOG.error("Cannot send logs to " + server.toString());
166
return false;
167
}
168
- if (bytes.length > pendings.capacity()) {
169
- LOG.error("Log data larger {} than buffer size {}", bytes.length, pendings.capacity());
+ if (bytes.length > pendings.remaining()) {
+ LOG.error("Log data {} larger than remaining buffer size {}", bytes.length, pendings.remaining());
170
171
172
0 commit comments