Skip to content

Commit

Permalink
Merge pull request apache#261 from songxiaosheng/doc_offical_master
Browse files Browse the repository at this point in the history
⬆️ quic support dubbo3.2
  • Loading branch information
songxiaosheng committed Dec 21, 2023
2 parents a2ccd42 + ea87c33 commit b021c18
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Empty file.
11 changes: 8 additions & 3 deletions dubbo-remoting-extensions/dubbo-remoting-quic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>dubbo-remoting-quic</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>3.2.0-SNAPSHOT</version>


<dependencies>
Expand All @@ -38,15 +38,20 @@
<groupId>io.netty.incubator</groupId>
<artifactId>netty-incubator-codec-quic</artifactId>
<version>0.0.14.Final</version>
<classifier>${os.detected.classifier}</classifier>
</dependency>

<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-remoting-api</artifactId>
<optional>true</optional>
<version>3.2.7</version>
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>3.2.7</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
public class QuicNettyServer extends AbstractServer implements RemotingServer {

private static final Logger logger = LoggerFactory.getLogger(QuicNettyServer.class);
private static final String SERVER_THREAD_POOL_NAME = "DubboServerHandler";
/**
* the cache for alive worker channel.
* <ip:port, dubbo channel>
Expand Down Expand Up @@ -172,6 +173,11 @@ protected void doClose() throws Throwable {
}
}

@Override
protected int getChannelsSize() {
return channels == null ? 0 : channels.size();
}

@Override
public Collection<Channel> getChannels() {
Collection<Channel> chs = new ArrayList<>(this.channels.size());
Expand Down

0 comments on commit b021c18

Please sign in to comment.