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 <[EMAIL PROTECTED]>yazdı: > Hello, > > On Tue, Nov 25, 2008 at 15:17, Jean-Paul Calderone <[EMAIL PROTECTED]> > wrote: > > On Tue, 25 Nov 2008 12:41:46 +0200, Aydın ŞEN <[EMAIL PROTECTED]> > 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 > [email protected] > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > > -- Aydın ŞEN Ege Üniversitesi Uluslararası Bilgisayar Enstitüsü
_______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
