go-mail/smtp
Winni Neessen 6bd9a9c735
Refactor mutex usage for connection safety
This commit revises locking mechanism usage around connection operations to avoid potential deadlocks and improve code clarity. Specifically, defer statements were removed and explicit unlocks were added to ensure that mutexes are properly released after critical sections. This change affects several methods, including `Close`, `cmd`, `TLSConnectionState`, `UpdateDeadline`, and newly introduced locking for concurrent data writes and reads in `dataCloser`.
2024-09-27 14:03:26 +02:00
..
auth.go Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
auth_cram_md5.go Refine function comments to include return type details 2024-01-10 11:05:34 +01:00
auth_cram_md5_118.go Refine function comments to include return type details 2024-01-10 11:05:34 +01:00
auth_login.go Support lowercase username and password challenge 2024-08-16 15:46:16 +08:00
auth_plain.go Refine function comments to include return type details 2024-01-10 11:05:34 +01:00
auth_xoauth2.go Refine function comments to include return type details 2024-01-10 11:05:34 +01:00
example_test.go Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
LICENSE Adjusting license headers and including original LICENSE file from the Go project into the smtp/ directory as suggested in https://github.com/wneessen/go-mail/issues/97#issuecomment-1381046444 2023-01-13 16:54:55 +01:00
smtp.go Refactor mutex usage for connection safety 2024-09-27 14:03:26 +02:00
smtp_ehlo.go Add mutex to Client for thread-safe operations 2024-09-27 11:10:23 +02:00
smtp_ehlo_117.go Add mutex to Client for thread-safe operations 2024-09-27 11:10:23 +02:00
smtp_test.go Sync with upstream 2024-05-24 18:50:27 +02:00