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

S/MIME unlink(...) Resource temporarily unavailable in ... #1157

Open
arena94 opened this Issue Dec 29, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@arena94
Copy link
Contributor

arena94 commented Dec 29, 2018

Q A
Bug report? yes
Feature request? no
RFC? no
How used? Standalone
Swiftmailer version 6.1.3
PHP version 7.2.3

Observed behaviour

Hello,

When using S/Mime signer, during the signing before sending process, i have 4 messages in my logs :

2018-12-29 22:21:05 000000 -- PHP [E_WARNING] 2 : unlink(C:\Windows\Temp\FilB747.tmp): Resource temporarily unavailable in ...\swiftmailer\swiftmailer\lib\classes\Swift\ByteStream\TemporaryFileByteStream.php at line 39 
2018-12-29 22:21:05 000000 -- PHP [E_WARNING] 2 : unlink(C:\Windows\Temp\FilB746.tmp): Resource temporarily unavailable in ...\swiftmailer\swiftmailer\lib\classes\Swift\ByteStream\TemporaryFileByteStream.php at line 39 
2018-12-29 22:21:05 000000 -- PHP [E_WARNING] 2 : unlink(C:\Windows\Temp\FilB6C7.tmp): Resource temporarily unavailable in ...\swiftmailer\swiftmailer\lib\classes\Swift\ByteStream\TemporaryFileByteStream.php at line 39 
2018-12-29 22:21:05 000000 -- PHP [E_WARNING] 2 : unlink(C:\Windows\Temp\FilB757.tmp): Resource temporarily unavailable in ...\swiftmailer\swiftmailer\lib\classes\Swift\ByteStream\TemporaryFileByteStream.php at line 39 

The mail is sent ... but the temporary files are still in C:\Windows\Temp\

Expected behaviour

Apparently the cache is not used by signers even if set :
Swift_Preferences::getInstance()->setTempDir( $path )->setCacheType( 'disk' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment