async interface?

15 views
Skip to first unread message

Jon Stevens

unread,
May 30, 2011, 8:25:11 PM5/30/11
to sardi...@googlegroups.com
May be worthwhile at some point to provide an async interface to Sardine.

We could base it on this...

https://github.com/sonatype/async-http-client

jon

David Kocher

unread,
May 31, 2011, 3:44:30 AM5/31/11
to sardi...@googlegroups.com
I am not familar with the async API but that would possibly need some major refactoring of SardineImpl to avoid code duplication.

-
David

john howard

unread,
Dec 15, 2011, 6:03:02 PM12/15/11
to sardi...@googlegroups.com
Bit of a noob here...

When I call sardine.put(...); it returns right away, so I figured the transfer was synchronous. But on my server (lighttpd 1.29 mod_webdav, self-signed cert) I only get a 0 length file. A couple of questions:

- Do I need to wait around in some way to finish the transfer?
- wireshark shows a tcp RST (reset?) packet sent to the server, could this be a cause or a symptom of the transfer problem?

Awesome looking library BTW!

Jon Stevens

unread,
Dec 15, 2011, 6:09:52 PM12/15/11
to sardi...@googlegroups.com
Welcome John!

Last I looked, put is not currently async. Is there anything in the logs on your server? Can you put to the same file/directory with a different client?

jon

john howard

unread,
Dec 16, 2011, 6:14:38 PM12/16/11
to sardine
Well, the same file transfers fine with cadaver 0.23.3 (linux) and
bitkinex 3.2.3 (win7). I can turn on "webdav.xml-log" but not enough
info there really. I'll next try without the cert - perhaps I'll see
something in a packettrace. Holidays are getting in the way, but I'll
be back!

cheers

David Delbecq

unread,
Dec 17, 2011, 8:00:36 AM12/17/11
to sardi...@googlegroups.com
See http://hc.apache.org/httpcomponents-client-ga/logging.html for info on how to enable wire logging ;)

2011/12/17 john howard <orthop...@gmail.com>
Reply all
Reply to author
Forward
0 new messages