API users who are uploading: a question
onethumb
Administrators Posts: 1,269 Major grins
I have someone else doing uploading via the API (using POST), but they're repeatedly getting the socket closed on them on the 2nd file of any batch.
I think it might be related to HTTP Keepalive timeouts or something, and the obvious and easy solution is to just open a new socket for each file...
But, are you guys seeing this? Or is he maybe doing something wrong?
Essentially, he POSTs a file, gets an ok back, and begins another POST. Partway (not sure where yet) though, the socket closes, so he auto-retries and it goes fine. Rinse, lather, repeat.
Are you guys opening a new socket for each and every file? Or trying to use the same socket?
Don
I think it might be related to HTTP Keepalive timeouts or something, and the obvious and easy solution is to just open a new socket for each file...
But, are you guys seeing this? Or is he maybe doing something wrong?
Essentially, he POSTs a file, gets an ok back, and begins another POST. Partway (not sure where yet) though, the socket closes, so he auto-retries and it goes fine. Rinse, lather, repeat.
Are you guys opening a new socket for each and every file? Or trying to use the same socket?
Don
0
Comments
Sorry, I had to delete my previous reply for the reason it was wrong - didn't verify the code, and my memory failed me (need to get some parity check installed:-)
My component's setting is KeepAlive=FALSE.
Which means it disconnects ater each request.
Again, no problem noted os far.
Maybe that's also the reason why it's slower on the upload. I'll try to optimize it, so if it goes through the bunch of calls in a row it does not disconnect every time, only at the end.
Will let you know how it will go.
...now now, you know us well enough to know that with this spiffy new API working out so well (and the Mac OS X Uploader that uses it working so well using it), and with every single person @ smugmug using Firefox as their default browser, we might not be limited to the current uploaders for much longer....
Don
clap
Have you checked out Nikolai's smugmug Explorer yet?
You might be pleasantly surprised.
Don
Here you go
You can find more goodies in the hacks section.
Take care,
Don