Comments (7)
There are some ways to mitigate, for example: run decryption in parallel, start from the most recent user, etc.
from mieru.
I think this is possible to do with cipher caching.
from mieru.
This is expected. When a new connection is established, the server will iterate all the users and try to decrypt the message, which can take a long time if the number of users is huge.
The limit depends on the performance of server machine.
It is better to load balance users to different machines.
from mieru.
There's no problem with the VPS; it has 32GB of RAM, and only one user is connected, yet I'm experiencing a timeout issue. I created 3 servers with fake json config files for XTLS Xray(2GB RAM), Singbox(2GB RAM), and Mieru(32GB RAM), but the problem only occurs with Mieru. Could you please check it? Thank you.
from mieru.
I believe there are issues with the code that make iterating over all users unnecessary. Instead, we can utilize the array index to verify if a user exists. While I'm not well-versed in Go language, this approach is applicable in other programming languages.
from mieru.
I got your point. This is achieved with TLS. Client encrypt the user info with server's public key. Server uses the private key to decrypt, and get the user info. Server uses the same private key to decrypt all incoming requests.
No TLS was the initial design goal of this project (https://github.com/enfein/mieru/blob/main/docs/announcement.zh_CN.md). I don't want to complicate everything by bringing in it.
from mieru.
Given there are some other protocol changes we can make, let's do everything together and target this at mieru v3.0.0 release.
from mieru.
Related Issues (20)
- Reply Attack? HOT 2
- Add a mieru CLI to check connectivity
- Feature Request: check if port is available HOT 1
- Feature Request: port forwarding HOT 3
- Problem in windows 11 HOT 3
- mieru client is not running: connection refused HOT 6
- Occasionally proxy server doesn't accept socks5 request
- Version 3.1.0 detected a virus HOT 4
- 希望强化test功能 HOT 1
- DNS problem in android version HOT 1
- How do you write the such beautiful code? HOT 2
- 除了nekobox,安卓有没有其他客户端实现 HOT 5
- 能提供openbsd的mita二进制包么 HOT 1
- Feature request: proxy authentication and etc HOT 1
- BSD操作系统代理支持 HOT 1
- Start mieru at system boot HOT 1
- 简单的GUI客户端 HOT 4
- 关于新版本v3.2.1 HOT 7
- 感谢大佬 HOT 2
- 3.3.0 安装失败,影响 Debian 11 和以下的系统 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mieru.