[Twisted-Python] sending file but LineReceiver doesnt run

Aydın ŞEN adigeaydin at gmail.com
Tue Nov 25 10:29:16 EST 2008


Thank you very much..

if i send file per 1KB does it cause lack of performance?

25 Kasım 2008 Salı 16:51 tarihinde Amaury Forgeot d'Arc
<amauryfa at gmail.com>yazdı:

> Hello,
>
> On Tue, Nov 25, 2008 at 15:17, Jean-Paul Calderone <exarkun at divmod.com>
> wrote:
> > On Tue, 25 Nov 2008 12:41:46 +0200, Aydın ŞEN <adigeaydin at gmail.com>
> wrote:
> >>
> >> Hi,
> >> I am trying to send file which is in the client's disk, i am using
> >> LineReceiver in the server side. I am sending and receiving data like
> >> login
> >> stuff but when i start to read & send file LineReceiver method doesnt
> run
> >> in
> >> the server side. Sending file code part is below, what can be cause of
> >> this?
>
> The LineReceiver implements a limit of MAX_LENGTH = 16384 bytes per "line".
> When you send 100KB in a row, it calls it lineLengthExceeded() method
> and loses its connection...
>
> > File transfers are not best done using a line-oriented protocol.  Have a
> > look
> > at the "Protocol Design" articles linked from <http://itamarst.org/>.
> >
> > Jean-Paul
>
> Indeed.
>
> --
> Amaury Forgeot d'Arc
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>


-- 
Aydın ŞEN

         Ege Üniversitesi
Uluslararası Bilgisayar Enstitüsü
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20081125/6470eed6/attachment.htm 


More information about the Twisted-Python mailing list