<div dir="ltr">Thanks to Duncan on IRC, it seems that this is just a manifestation of a known issue with the HTTP package:<div><br></div><div><a href="https://github.com/haskell/HTTP/issues/14">https://github.com/haskell/HTTP/issues/14</a><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 February 2014 12:24, Ian Ross <span dir="ltr"><<a href="mailto:ian@skybluetrades.net" target="_blank">ian@skybluetrades.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear all,</div><div><br></div><div>Has anyone used the mirror client recently?  I'm trying to get set up to work on Hackage a little and haven't succeeded in getting it to work yet.  The problem occurs during the upload of the first Cabal file during mirroring: instead of getting the 401 response and retrying with authentication, the mirror client just fails with "hackage-mirror: <socket: 4>: hClose: resource vanished (Broken pipe)".</div>

<div><br></div><div>I've tried uploading manually from within GHCi (setting up all the Network.Browser authentication stuff) and that works fine.  But I've not been able to track down what the difference is between doing that and what's happening within the mirror client.  There doesn't seem to be anything that would cause this in the MirrorSession stuff, and the Network.Browser authentication generator seems to be getting set up correctly, but it never gets to the point where it retries the upload with the generated authentication information.</div>

<div><br></div><div>Can anyone confirm whether this is still working and I'm just doing something wrong, or if it's stopped working recently?  (In the latter case, I'll spend some more time trying to figure out what's going on.)</div>

<div><br></div><div>Cheers,</div><div><br></div><div>Ian.</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br>Ian Ross   Tel: <a href="tel:%2B43%280%296804451378" value="+436804451378" target="_blank">+43(0)6804451378</a>   <a href="mailto:ian@skybluetrades.net" target="_blank">ian@skybluetrades.net</a>   <a href="http://www.skybluetrades.net" target="_blank">www.skybluetrades.net</a>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ian Ross   Tel: +43(0)6804451378   <a href="mailto:ian@skybluetrades.net" target="_blank">ian@skybluetrades.net</a>   <a href="http://www.skybluetrades.net" target="_blank">www.skybluetrades.net</a>
</div>