Google Summer of Code: Week 1
As the week 0 was, week 1 was more exciting. This document will throw light on week 1 work.
May 10:
I have written a medium blog post about my project and week 0 updates you can find it here.
May 11:
Added some logging to Aria2c WebSocket responses to dig where the problem is during the download process and the reason behind error code => 1 and message => The parameter at 0 has the wrong type.
Added logging to UserManager and DownloadManager to log MySQL errors properly and now the warnings are not being shown \0/.
May 12:
I figured out that every time the admin clicks the start button the previous model creates a new process running the complete download daemon, so how may ever times it is pinged we are left with those many processes started. Another thing is that when a kill is requested only one process is terminated but others stay in the pool, making the server go down. So I came up with the simple fix of having only one active download daemon process always, happily, this has solved most of our issues.
Coming to the error code 1 from Aria2c WebSocket, download is being made only if the complete downloads folder size is less than the certain limit (which you can configure on dl.conf) so due to this reason download was not added but made a message request to the WebSocket making it throw this. So the workaround was to increase the size limit for now.
I sent a pull request for the fix. PR Link
May 13:
Fixed the Compression feature and now we can have downloads and compression feature working \0/ for Bassa
May 14:
I went through blogs on Python on Panda Bunny Tech.
May 15:
Fixed some Codacy errors in my pr and updated Travis config to build all the Dockerfiles and push them to the registry when the build succeeds.
May 16:
Travis shows a log limit exceeded to be fixed today ✌️
That’s it for this week.
You can find as Mehant Kammakomati at GitHub, Twitter, LinkedIn ✨