User disconnect from any event. (wodSmtpServer / wodPop3Server / wodImapServer)
Hi Ajit.
Using sleep in event, in single-threaded environment, is not a good idea. It stops everything, even socket processing. So, messag enever reaches remote.
You set Action to Deny, but disconnect user before he receives a message.
Don't Sleep, don't Disconnect. Just Deny. User will have to leave anyway, or try to re-register with the server.
Jasmine.
So this should work
if(anyerror){
User.Send(disconnectReason);
Action = SmtpActions.Deny;
return;
}
does it close the session automatically for user?
Complete thread:
- User disconnect from any event. - ajitpals, 2016-02-05, 13:25
- User disconnect from any event. - Jasmine, 2016-02-05, 13:28
- User disconnect from any event. - ajitpals, 2016-02-05, 13:32
- User disconnect from any event. - Jasmine, 2016-02-05, 13:34
- User disconnect from any event. - ajitpals, 2016-02-08, 11:46
- User disconnect from any event. - Jasmine, 2016-02-08, 12:23
- User disconnect from any event. - ajitpals, 2016-02-08, 11:46
- User disconnect from any event. - Jasmine, 2016-02-05, 13:34
- User disconnect from any event. - ajitpals, 2016-02-05, 13:32
- User disconnect from any event. - Jasmine, 2016-02-05, 13:28