carviaso / google-checkout-dotnet-sample-code

Automatically exported from code.google.com/p/google-checkout-dotnet-sample-code
0 stars 0 forks source link

GCheckout.dll throwing IOException on second request #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Matt Kull posted to the forum:

The first time I create and send a request, the request is sent fine. 
The user is then redirected to the google checkout process.  All is 
well. 

If the user hits the back button, our View Cart page is reloaded.  All 
is well. 

If the user then clicks on the Google Checkout button on that page 
again, a new CheckoutShoppingCartRequest is created and sent.  As soon 
as it is sent an IOException is thrown, "The underlying connection was 
closed: A connection that was expected to be kept alive was closed by 
the server." 

Interestingly, if I catch the IOException and try to resend the request 
in the catch block, the request is able to be sent fine. 
Alternatively, if I try to send a request two times in a row, both 
requests are sent fine. 

The CheckoutShoppingCartRequest does not have an open or close method, 
so I assume that should be handled within?  Should I be disposing of my 
request object somehow?

Original issue reported on code.google.com by moman...@google.com on 28 Oct 2006 at 12:24

GoogleCodeExporter commented 9 years ago

Original comment by martin.o...@gmail.com on 28 Oct 2006 at 12:25

GoogleCodeExporter commented 9 years ago
Marked as duplicate of issue 7.

Original comment by martin.o...@gmail.com on 24 Dec 2006 at 7:32