Open sthaha opened 5 years ago
This happens because of a duplicate timout and a channel close.
This occurs when links-to-be processed queue is temporarily empty. The timeout was used to makes sure no new links are missed due to network delay, resulting in a partial sitemap.
I believe a cancellable timeout using a context.WithCancel() context will resolve the issue.
I shall implement the fix and push the changes in 2 days.
fixed in 7f5c937bfe8a77a665f0943dcbc713b2bcb03664 Added a mechanism to reset timeout if there is an active timeout
Steps to reproduce
Expected Result:
prints the sitemap without any crash
Actual
panics at the end of execution