souphttpsrc: Fix keep-alive handling
We have to get rid of the message on EOS when the complete stream is read to remember that we successfully finished handling this specific message. Otherwise we will cancel it later and close the connection instead of reusing it at a later time. It might also make sense to reuse connections if a non-200 response is received. As long as there was no connection error, the HTTP connection should be re-usable.
Showing with 11 additions and 3 deletions