[x] I certify that I have read the contributing guidelines and I acknowledge if I don't follow the format below, or I'm using an old version of trojan, or I apparently fail to provide sufficient information (such as logs, specific numbers), or I don't check this box, my issue will be closed immediately without any notice.
Trojan Version
1.16.0
Describe the bug
Server process crashed silently.
The server has been setup successfully and it has been working well for a few hours.
But after that the trojan process crashed silently without any error so it is hard to know what happened.
To Reproduce
Steps to reproduce the behavior:
Run the trojan process with nohop, such as "nohup trojan -c myconfig.json -l log.txt > nohup.out 2>&1 &"
It works well.
About a few hours, maybe one hour or more. Number of users increased to 50.
Server process crashed.
Check the log.txt, there is no obvious trojan side error.
Expected behavior
Trojan should work and the process is still running.
Or it crashed, but the log should show what happened.
Logs
If applicable, add logs to help explain your problem.
Additional context
Before this crash, I find there is "Too many open files" and then the process crashed. So I set the ulimit -n 102400 and there is no such error anymore. But it still crashed silently.
Trojan Version 1.16.0
Describe the bug Server process crashed silently. The server has been setup successfully and it has been working well for a few hours. But after that the trojan process crashed silently without any error so it is hard to know what happened.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Logs If applicable, add logs to help explain your problem.
Environment Ubuntu 1804, 2C4G VM. Config: { "run_type": "server", "local_addr": "0.0.0.0", "local_port": 443, "remote_addr": "www.abcxyz123.com", "remote_port": 443, "password": [ "mypassword" ], "log_level": 2, "ssl": { "cert": "/path/to/fullchain.cer", "key": "/path/to/private.key", "key_password": "", "cipher_tls13": "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384", "prefer_server_cipher": true, "alpn": [ "http/1.1" ], "reuse_session": true, "session_ticket": false, "session_timeout": 60, "plain_http_response": "", "curves": "", "dhparam": "" }, "tcp": { "prefer_ipv4": true, "no_delay": true, "keep_alive": true, "reuse_port": true, "fast_open": true, "fast_open_qlen": 20 } }
Additional context Before this crash, I find there is "Too many open files" and then the process crashed. So I set the
ulimit -n 102400
and there is no such error anymore. But it still crashed silently.