3 Commits
Author SHA1 Message Date
lejianwen cdffe9b45c fix: REG_TIMEOUT up to 100s, when use websocket reg time will be long 2025-09-01 09:18:35 +08:00
lejianwen fb8b5b9cf4 chore: git version tag 2025-09-01 08:35:33 +08:00
lejianwen f85f6910d2 chore: Major tag use x.x 2025-09-01 08:33:32 +08:00
3 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -126,7 +126,7 @@ jobs:
id: vars
run: |
T=${GITHUB_REF#refs/*/}
M=${T%%.*}
M=${T%.*}
echo "GIT_TAG=$T" >> $GITHUB_ENV
echo "MAJOR_TAG=$M" >> $GITHUB_ENV
@@ -163,7 +163,7 @@ jobs:
id: vars
run: |
T=${GITHUB_REF#refs/*/}
M=${T%%.*}
M=${T%.*}
echo "GIT_TAG=$T" >> $GITHUB_ENV
echo "MAJOR_TAG=$M" >> $GITHUB_ENV
@@ -171,7 +171,6 @@ jobs:
# this has to run only if invoked by a new tag
- name: Create and push manifest (:ve.rs.ion)
uses: Noelware/docker-manifest-action@master
if: github.event_name != 'workflow_dispatch'
with:
tags: ${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}
inputs: |
-1
View File
@@ -308,7 +308,6 @@ jobs:
# this has to run only if invoked by a new tag
- name: Create and push manifest (:ve.rs.ion)
uses: Noelware/docker-manifest-action@master
if: github.event_name != 'workflow_dispatch'
with:
tags: ${{ secrets.DOCKER_IMAGE }}:${{ env.GIT_TAG }}
inputs: |
+2 -2
View File
@@ -56,7 +56,7 @@ enum Data {
RelayServers(RelayServers),
}
const REG_TIMEOUT: i32 = 30_000;
const REG_TIMEOUT: i32 = 100_000; //当使用websocket时,注册间隔时间会很长,改为100
type TcpStreamSink = SplitSink<Framed<TcpStream, BytesCodec>, Bytes>;
type WsSink = SplitSink<tokio_tungstenite::WebSocketStream<TcpStream>, tungstenite::Message>;
struct SafeWsSink {
@@ -496,7 +496,7 @@ impl RendezvousServer {
ws: bool,
) -> bool {
if let Ok(msg_in) = RendezvousMessage::parse_from_bytes(bytes) {
// log::debug!("Received TCP message from {}: {:?}", addr, msg_in);
log::debug!("Received TCP message from {}: {:?}", addr, msg_in);
match msg_in.union {
Some(rendezvous_message::Union::RegisterPeer(rp)) => {
// B registered