Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_trigger_server in infinite loop #492

Open
S7uX opened this issue Jul 30, 2024 · 0 comments
Open

_trigger_server in infinite loop #492

S7uX opened this issue Jul 30, 2024 · 0 comments

Comments

@S7uX
Copy link

S7uX commented Jul 30, 2024

I am using aiosmtpd 1.4.6 in an Azure Container App. I have enabled logging. When I start the server on my local machine, I get the following logs:
INFO [2024-07-30 15:10:03,857] - [C:\Users\COCCOV\AppData\Local\pypoetry\Cache\virtualenvs\mail2sms-EP6LIPF2-py3.12\Lib\site-packages\aiosmtpd\smtp.py connection_made 523]: Peer: ('::1', 58365, 0, 0) INFO [2024-07-30 15:10:03,857] - [C:\Users\COCCOV\AppData\Local\pypoetry\Cache\virtualenvs\mail2sms-EP6LIPF2-py3.12\Lib\site-packages\aiosmtpd\smtp.py _handle_client 615]: ('::1', 58365, 0, 0) handling connection INFO [2024-07-30 15:10:03,870] - [C:\Users\COCCOV\AppData\Local\pypoetry\Cache\virtualenvs\mail2sms-EP6LIPF2-py3.12\Lib\site-packages\aiosmtpd\smtp.py eof_received 547]: ('::1', 58365, 0, 0) EOF received INFO [2024-07-30 15:10:03,870] - [C:\Users\COCCOV\AppData\Local\pypoetry\Cache\virtualenvs\mail2sms-EP6LIPF2-py3.12\Lib\site-packages\aiosmtpd\smtp.py _handle_client 761]: ('::1', 58365, 0, 0) Connection lost during _handle_client() INFO [2024-07-30 15:10:03,870] - [C:\Users\COCCOV\AppData\Local\pypoetry\Cache\virtualenvs\mail2sms-EP6LIPF2-py3.12\Lib\site-packages\aiosmtpd\smtp.py connection_lost 530]: ('::1', 58365, 0, 0) connection lost

I think the _trigger_server method in Controller is causing this.

When I run the server in an Azure container app with Ingress enableld my log is endlessly spammed with the output:
image

Without Ingress, the behaviour is the same as on my local machine. I have no idea what to do.

Is this a bug? How can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant