Score:0

Error in udp reverse proxy with nginx stream failed (90: Message too long)

gn flag

I want to proxy UDP traffic with nginx. nginx doesn't complain about the configuration. The client connects halfway (it says it can reach the end server), but the connection gets stuck and eventually times out.

nginx version: nginx/1.18.0 (Ubuntu)

nginx.conf

worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 2000;
    # multi_accept on;
}

stream {
upstream 19132udp {
        server access-ip:19132;
    }

    server {
        listen     19132 udp;
        proxy_pass 19132udp;
    }
}

nginx error log

2023/03/28 07:23:13 [alert] 66862#66862: *103 recv() failed (90: Message too long) while proxying and reading from upstream, udp client: 126.xxx.xxx.xxx, server: 0.0.0.0:19132, upstream: "121.xxx.xxx.xxx:19132", bytes from/to client:1464/0, bytes from/to upstream:0/1464

I would like to resolve this issue immediately. i hope good answer

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.