bug #23199 Reset redirectCount when throwing exception (hvanoch)
bug #23199 Reset redirectCount when throwing exception (hvanoch)

This PR was merged into the 2.7 branch.

Discussion
----------

Reset redirectCount when throwing exception

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #23197
| License       | MIT

When catching the exception throw when exceeding the redirect limit, all new request which results in a redirect fail. By resetting the redirectCount we can still use the same client instance.

Commits
-------

83fd578f96 Reset redirectCount when throwing exception

derrabus/symfony,gencer/symfony,frankdejonge/symfony,vincentaubert/symfony,josephdpurcell/symfony,Slamdunk/symfony,zorn-v/symfony,tucksaun/symfony,DavidGarciaCat/symfony,mweimerskirch/symfony,Nyholm/symfony,hhamon/symfony,ro0NL/symfony,shieldo/symfony,Einenlum/symfony,josephdpurcell/symfony,lyrixx/symfony,lstrojny/symfony,yceruto/symfony,hacfi/symfony,weaverryan/symfony,docteurklein/symfony,zorn-v/symfony,Nyholm/symfony,arjenm/symfony,Aliance/symfony,michaelperrin/symfony,d-ph/symfony,1ed/symfony,dunglas/symfony,jvasseur/symfony,hhamon/symfony,mihai-stancu/symfony,DavidGarciaCat/symfony,garak/symfony,ogizanagi/symfony,michaelperrin/symfony,jakzal/symfony,fabpot/symfony,frankdejonge/symfony,docteurklein/symfony,mnapoli/symfony,Einenlum/symfony,fabpot/symfony,Koc/symfony,xabbuh/symfony,c960657/symfony,tgalopin/symfony,Koc/symfony,iltar/symfony,chalasr/symfony,frankdejonge/symfony,kbond/symfony,sroze/symfony,joelwurtz/symfony,mihai-stancu/symfony,hhamon/symfony,localheinz/symfony,zerkms/symfony,mvhirsch/symfony,voronkovich/symfony,chalasr/symfony,WhiteEagle88/symfony,zorn-v/symfony,alekitto/symfony,HeahDude/symfony,tgalopin/symfony,voronkovich/symfony,Taluu/symfony,pamil/symfony,andrerom/symfony,voronkovich/symfony,Deamon/symfony,ro0NL/symfony,andreia/symfony,docteurklein/symfony,Taluu/symfony,yceruto/symfony,gonzalovilaseca/symfony,mnapoli/symfony,Amo/symfony,josephdpurcell/symfony,dmaicher/symfony,curry684/symfony,tgalopin/symfony,apetitpa/symfony,nasimnabavi/symfony,1ed/symfony,jvasseur/symfony,aeoris/symfony,kbond/symfony,SaschaDens/symfony,romaricdrigon/symfony,hason/symfony,bendavies/symfony,zerkms/symfony,codeclimate-testing/symfony,Koc/symfony,jean-gui/symfony,Slamdunk/symfony,Simperfit/symfony,iltar/symfony,shieldo/symfony,backbone87/symfony,stof/symfony,frankdejonge/symfony,SpacePossum/symfony,Simperfit/symfony,mvhirsch/symfony,teohhanhui/symfony,dmaicher/symfony,Tobion/symfony,hhamon/symfony,pyrech/symfony,DavidGarciaCat/symfony,codeclimate-testing/symfony,Tobion/symfony,mpdude/symfony,SpacePossum/symfony,joelwurtz/symfony,apetitpa/symfony,Strate/symfony,gimler/symfony,xabbuh/symfony,SpacePossum/symfony,andreia/symfony,gencer/symfony,oleg-andreyev/symfony,Aliance/symfony,MatTheCat/symfony,e-moe/symfony,Deamon/symfony,lepiaf/symfony,maidmaid/symfony,andrerom/symfony,lepiaf/symfony,Koc/symfony,jvasseur/symfony,symfony/symfony,maidmaid/symfony,derrabus/symfony,mihai-stancu/symfony,Soullivaneuh/symfony,Triiistan/symfony,localheinz/symfony,tucksaun/symfony,lyrixx/symfony,Pierstoval/symfony,sroze/symfony,OskarStark/symfony,voronkovich/symfony,Amo/symfony,sroze/symfony,zcodes/symfony,yceruto/symfony,derrabus/symfony,zerkms/symfony,stof/symfony,Einenlum/symfony,phramz/symfony,mweimerskirch/symfony,HeahDude/symfony,Deamon/symfony,Aliance/symfony,ragboyjr/symfony,xabbuh/symfony,zerkms/symfony,Nyholm/symfony,deguif/symfony,OskarStark/symfony,OndraM/symfony,pyrech/symfony,jderusse/symfony,MatTheCat/symfony,michaelperrin/symfony,Triiistan/symfony,jzawadzki/symfony,kbond/symfony,Pierstoval/symfony,ogizanagi/symfony,gimler/symfony,inso/symfony,mweimerskirch/symfony,deguif/symfony,localheinz/symfony,Simperfit/symfony,zcodes/symfony,andreia/symfony,andrerom/symfony,aeoris/symfony,smatyas/symfony,gonzalovilaseca/symfony,pierredup/symfony,sgehrig/symfony,jakzal/symfony,andrerom/symfony,mpdude/symfony,weaverryan/symfony,romaricdrigon/symfony,joelwurtz/symfony,c960657/symfony,shieldo/symfony,WhiteEagle88/symfony,chalasr/symfony,dmaicher/symfony,Amo/symfony,inso/symfony,Taluu/symfony,Triiistan/symfony,SaschaDens/symfony,e-moe/symfony,ragboyjr/symfony,sgehrig/symfony,Strate/symfony,gnat42/symfony,tucksaun/symfony,mihai-stancu/symfony,alekitto/symfony,pyrech/symfony,jakzal/symfony,docteurklein/symfony,bendavies/symfony,vincentaubert/symfony,lyrixx/symfony,ajgarlag/symfony,yceruto/symfony,curry684/symfony,codeclimate-testing/symfony,shieldo/symfony,smatyas/symfony,Soullivaneuh/symfony,damienalexandre/symfony,jderusse/symfony,sroze/symfony,ajgarlag/symfony,iltar/symfony,zcodes/symfony,Deamon/symfony,SaschaDens/symfony,nasimnabavi/symfony,damienalexandre/symfony,docteurklein/symfony,pamil/symfony,paradajozsef/symfony,phramz/symfony,OndraM/symfony,sgehrig/symfony,Soullivaneuh/symfony,gnat42/symfony,c960657/symfony,romaricdrigon/symfony,mweimerskirch/symfony,gnat42/symfony,alekitto/symfony,mvhirsch/symfony,gencer/symfony,mnapoli/symfony,arjenm/symfony,backbone87/symfony,localheinz/symfony,dunglas/symfony,gonzalovilaseca/symfony,jakzal/symfony,Simperfit/symfony,smatyas/symfony,paradajozsef/symfony,Soullivaneuh/symfony,garak/symfony,gimler/symfony,lyrixx/symfony,tgalopin/symfony,pyrech/symfony,hason/symfony,apetitpa/symfony,teohhanhui/symfony,gimler/symfony,stof/symfony,vincentaubert/symfony,symfony/symfony,jean-gui/symfony,ogizanagi/symfony,Simperfit/symfony,ragboyjr/symfony,MatTheCat/symfony,Einenlum/symfony,smatyas/symfony,Taluu/symfony,hacfi/symfony,weaverryan/symfony,nicolas-grekas/symfony,backbone87/symfony,OskarStark/symfony,romaricdrigon/symfony,Slamdunk/symfony,mihai-stancu/symfony,pamil/symfony,pamil/symfony,nicolas-grekas/symfony,Nyholm/symfony,jean-gui/symfony,WhiteEagle88/symfony,iltar/symfony,xabbuh/symfony,curry684/symfony,paradajozsef/symfony,jvasseur/symfony,SaschaDens/symfony,sgehrig/symfony,teohhanhui/symfony,MatTheCat/symfony,ogizanagi/symfony,Triiistan/symfony,oleg-andreyev/symfony,Amo/symfony,deguif/symfony,chalasr/symfony,Slamdunk/symfony,paradajozsef/symfony,andreia/symfony,ajgarlag/symfony,nicolas-grekas/symfony,jzawadzki/symfony,bendavies/symfony,mpdude/symfony,inso/symfony,d-ph/symfony,gonzalovilaseca/symfony,Amo/symfony,ro0NL/symfony,HeahDude/symfony,Pierstoval/symfony,inso/symfony,zcodes/symfony,Triiistan/symfony,mnapoli/symfony,Deamon/symfony,Strate/symfony,e-moe/symfony,Tobion/symfony,dunglas/symfony,vincentaubert/symfony,weaverryan/symfony,jean-gui/symfony,symfony/symfony,Soullivaneuh/symfony,derrabus/symfony,symfony/symfony,SaschaDens/symfony,inso/symfony,tucksaun/symfony,phramz/symfony,apetitpa/symfony,smatyas/symfony,fabpot/symfony,zorn-v/symfony,lstrojny/symfony,OndraM/symfony,SpacePossum/symfony,garak/symfony,phramz/symfony,maidmaid/symfony,deguif/symfony,teohhanhui/symfony,Tobion/symfony,ajgarlag/symfony,bendavies/symfony,fabpot/symfony,OndraM/symfony,SpacePossum/symfony,lstrojny/symfony,d-ph/symfony,garak/symfony,jzawadzki/symfony,mvhirsch/symfony,1ed/symfony,mweimerskirch/symfony,stof/symfony,nasimnabavi/symfony,lepiaf/symfony,curry684/symfony,oleg-andreyev/symfony,codeclimate-testing/symfony,arjenm/symfony,ragboyjr/symfony,hason/symfony,ro0NL/symfony,jderusse/symfony,nasimnabavi/symfony,dmaicher/symfony,pierredup/symfony,mpdude/symfony,michaelperrin/symfony,oleg-andreyev/symfony,gnat42/symfony,c960657/symfony,pierredup/symfony,damienalexandre/symfony,joelwurtz/symfony,aeoris/symfony,jderusse/symfony,kbond/symfony,arjenm/symfony,e-moe/symfony,pierredup/symfony,1ed/symfony,HeahDude/symfony,hacfi/symfony,OndraM/symfony,d-ph/symfony,alekitto/symfony,mvhirsch/symfony,maidmaid/symfony,OskarStark/symfony,nicolas-grekas/symfony,mnapoli/symfony,damienalexandre/symfony,Pierstoval/symfony