]> source.dussan.org Git - gitea.git/commit
Make mailer SMTP check have timed context (#24751) (#24759)
authorGiteabot <teabot@gitea.io>
Wed, 17 May 2023 10:08:39 +0000 (06:08 -0400)
committerGitHub <noreply@github.com>
Wed, 17 May 2023 10:08:39 +0000 (06:08 -0400)
commit57f520e7e5259a5e220ec8cdaccf6973dcde0f81
tree59c64468d8219c01014bef8348b0acbe61755c0a
parente4f200e616e79cdea7f1c50b5dbb3f3ed2fe84db
Make mailer SMTP check have timed context (#24751) (#24759)

Backport #24751 by @wxiaoguang

Make mailer SMTP check have timed context

Otherwise Gitea may block for long time if the DNS request blocks.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
modules/setting/mailer.go