Skip to content

Commit

Permalink
Merge pull request #33 from tronprotocol/release_v0.1.4
Browse files Browse the repository at this point in the history
Merge release v0.1.4 into main
  • Loading branch information
jwrct committed Feb 22, 2023
2 parents d15df91 + 85d5c15 commit a2e790d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repositories {
Then add the required packages as dependencies. Please add dependencies locally.
```bash
dependencies {
compile group: 'io.github.tronprotocol', name: 'libp2p', version: '0.1.2'
compile group: 'io.github.tronprotocol', name: 'libp2p', version: '0.1.4'
}
```
Or if you are using the jar files as your dependencies:
Expand All @@ -62,7 +62,7 @@ dependencies {
<dependency>
<groupId>io.github.tronprotocol</groupId>
<artifactId>libp2p</artifactId>
<version>0.1.2</version>
<version>0.1.4</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'io.github.tronprotocol'
version '0.1.3'
version '0.1.4'

buildscript {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
in.markReaderIndex();
int preIndex = in.readerIndex();
int length = readRawVarint32(in);
if (in.readableBytes() == 0 || length > maxMsgLength) {
log.warn("Receive empty msg or big msg, not proto, host: {}, readableBytes: {}, length: {}",
ctx.channel().remoteAddress(), in.readableBytes(), length);
if (length >= maxMsgLength) {
log.warn("recv a big msg, host : {}, msg length is : {}", ctx.channel().remoteAddress(),
length);
in.clear();
channel.close();
return;
Expand Down

0 comments on commit a2e790d

Please sign in to comment.