I don't think I have time to extend the API for uploads before SoC
deadline, but I can do it later. I'll continue developing CC tools.

Really I'm reading the entire file into memory before writing into the
socket. I don't know how I could do it better, I will study this
point.

I'm appreciating all these suggestions and discussion.

Thanks,

Bruno

On 8/11/06, Nathan R. Yergler <[EMAIL PROTECTED]> wrote:
>
> > I'm not familiar with pythons http lib so I don't know how efficient
> > that is, I know that the PHP Snoopy lib that we use would read the
> > *entire* file into memory before writing into the socket which may
> > just work in most cases but hurts my old fashioned sensibilities.
>
> Python's httplib by default would do something similar to this.
> However, we're going to be moving to Twisted for the FTP stuff in
> ccPublisher, so we'll have access to its full suite of network classes,
> which include support for efficient streaming from point a to b (ie,
> read X bytes from the disk, send it to the socket, repeat).
>
> I'd say if you make it "right" using Python's built-in httplib now, we
> can worry about making it "fast" later.
>
>
> --
> Nathan R. Yergler
> Senior Software Engineer
> Creative Commons
>
> http://wiki.creativecommons.org/User:NathanYergler
> _______________________________________________
> cc-devel mailing list
> [email protected]
> http://lists.ibiblio.org/mailman/listinfo/cc-devel
>
_______________________________________________
cc-devel mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/cc-devel

Reply via email to