Comments (14)
@ranr Sorry for late reply. Do you still have that problem now?
I would suspect that is not a issue of emq. The socket_closed_remotely
error indicates emq was trying to send the request, but the peer closed the connection, probably because there was no process listening on port 80.
from emqx-auth-http.
from emqx-auth-http.
Hi, could you post your logs here? Including the emq's log, and the nginx's access/error log at the time the error occurred.
from emqx-auth-http.
Hi, I got the same issue (although I'm using Apache).
I suspect is my fault, but can't find the problem.
The server didn't go down either.
Regards,
from emqx-auth-http.
@NicoMechu How many users concurrently connected in your system? Did your problem occurred only when lots of connects flood in?
from emqx-auth-http.
@terry-xiaoyu Thanks for responding. I can't determinate a pattern for the error, but this doesn't happen only when there are lots of connects.
from emqx-auth-http.
from emqx-auth-http.
Hi to all, we have the same problem here with version 2.3.5:
we have only 3 clients connected and the acl server is on the same local network.
The first client sends a timestamp on the ping channel every 5 seconds.
The strange thing: if from another client I try to publish on the same channel, it works (Hello world messages):
after about a minute, the first client can publish again, without touch nothing.
from emqx-auth-http.
@Leen15 Hi, we're investigating this issue, as many guys have seen it.
Hope it get fixed in next release.
from emqx-auth-http.
Thanks @terry-xiaoyu . We would like to use emq in production but this bug stopped us because it happens every 10 minutes or less. :/
Do you have any ETA about the next release or could a hotfix / workaround be applied in the meanwhile?
Thanks for your great work!
from emqx-auth-http.
@Leen15 EMQ 2.3.7 would be released before next week, including the fix of this issue.
See the pull request here: #75
from emqx-auth-http.
Great, thanks!
from emqx-auth-http.
Happy new year,
It was pretty long but ran into httpc's problem too and had an investigation.
According to this guy ThomasArts, He use another profile for difference process. After reading httpc source code I have some though:
handle_request(Request, State = #state{options = Options}) ->
NewRequest = handle_cookies(generate_request_id(Request), State),
SessionType = session_type(Options),
case select_session(Request#request.method,
Request#request.address,
Request#request.scheme, SessionType, State) of
{ok, HandlerPid} ->
pipeline_or_keep_alive(NewRequest, HandlerPid, State);
no_connection ->
start_handler(NewRequest, State);
{no_session, OpenSessions} when OpenSessions
< Options#options.max_sessions ->
start_handler(NewRequest, State);
{no_session, _} ->
%% Do not start any more persistent connections
%% towards this server.
NewHeaders =
(NewRequest#request.headers)#http_request_h{connection
= "close"},
start_handler(NewRequest#request{headers = NewHeaders}, State)
end,
{reply, {ok, NewRequest#request.id}, State}.
- When calling
httpc:request
but doesn't specifiy aprofile
mean you will usedefault profile
and by default, each profile will have maximum 2 persistent connections per domain. If your application reach it, thehttpc_manager
doesn't start any more persistent connections so for further request, it just create then close the connection.
=> So moreprofile
mean you will have more perstistent connetions and the application doesn't have to create-close connections consecutively so maybe it can fix thesocket_closed_remotely
=> As I though, for simple we just need to increase the persistent connections option is okay.
from emqx-auth-http.
Thank you for your participation. The latest version already supports the retransmission mechanism.
from emqx-auth-http.
Related Issues (20)
- Disable ACL or Auth using docker HOT 3
- Enable passthrough of ws_cookie in acl request HOT 3
- default port 80/443 can't be ignored for version4.2.4 HOT 1
- {emqx_auth_http,{different_server,{emqx_auth_http_app,start,[normal,[]]}}} why? HOT 2
- TLS subject is always 'undefined' HOT 1
- meaning of the %r parameter HOT 1
- Cannot enable only ACL HOT 2
- EMQX HTTP Auth not working with Azure Functions HOT 2
- server_unavaliable error HOT 12
- Combine auth request with ACL for improved performance
- Client password printed in logs in plaintext HOT 1
- GET and POST method simultaneously in auth_http config file
- Problem with Kubernetes-Cluster internal service URLs authentication HOT 1
- Out-dated documentation HOT 1
- Unable to use the plugin when upgrading from 4.2.3 to 4.2.4 HOT 2
- http auth acl custom header
- EMQX HTTP not connecting to service (solved, docs need to be more firm) HOT 1
- Which ip did ipaddr get? HOT 3
- Auth and ACL Auth Api timeouts HOT 1
- Dynamic routing for mutualize broker HOT 3
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 emqx-auth-http.