ErikMinekus / sm-ripext

SourceMod REST in Pawn Extension
https://forums.alliedmods.net/showthread.php?t=298024
GNU General Public License v3.0
136 stars 38 forks source link

UploadFile not freeing file after upload completed. #28

Closed iBoonie closed 4 years ago

iBoonie commented 4 years ago

I have found that after a file has been uploaded, the file never gets freed and is locked by SRCDS. You cannot delete the file until you restart the server.

I thought HTTPClient might not have been being closed, so I tried deleting the handle after it finished the upload, but that didn't fix it. I'm not sure if this would cause crashes down the line if you upload a bunch of files or not.

ErikMinekus commented 4 years ago

Thanks, it looks like none of the requests were properly cleaned up in 1.2.0. Can you try https://github.com/ErikMinekus/sm-ripext/releases/tag/1.2.1 ?

iBoonie commented 4 years ago

That worked, thanks!