[Ndn-lib] ccn_put/pyndn.handle.put(co)

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Oct 14 01:18:10 PDT 2013


Hi Xiaoke,

Are you trying to "put" a large Data packet (more than 8k bytes)?  If so, then it is intended, since Data packet should be small, ideally within size of MTU.

---
Alex

On Oct 14, 2013, at 10:21 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:

> Thank you, Jeff. 
> 
> #override
>     def upcall(self, kind, upcallInfo):
>         
>         if kind != pyndn.UPCALL_INTEREST:
>             log.warn("get kind: %s" %str(kind))
>             return pyndn.RESULT_OK
>         
>         co = self.prepare(upcallInfo)
> #         try:
> #             co = self.prepare(upcallInfo)
> #         except:
> #             thetype, value, traceback = sys.exc_info()
> #             log.error("get exception: %s, %s, %s" %(thetype, value, traceback))
> #             co = None
>             
>         if co == None:
>             log.warn("co == None")
>             pass
>         else:
>             rst = self.handle.put(co)
>             log.warn("put content: %s, result: %s" %(co.name, rst))
>             #("content: %s" %(co.name))
>             
> 
> the self.prepare() just reads data from file and returns Data/Nack(no this data)/None(illegal request).
> 
> In fact, this whole application is quite complicated, I'm deploying it on two ends, but I met the problem of pyndn's installing.
> 
> thanks
> 
> My Regards,
> Xiaoke (Shock) Jiang (蒋小可)
> 
> Ph.D. Candidate,
> Department of Computer Science and Technology,
> Tsinghua University, Beijing, P.R.China. 100084
> On Monday, October 14, 2013 at 1:26 AM, Burke, Jeff wrote:
> 
>> Dear Xiaoke,
>> Can you please send a code sample of your usage, or full python files so we can test it here? 
>> Thank you,
>> Jeff
>> 
>> From: Xiaoke Jiang <shock.jiang at gmail.com>
>> Date: Sat, 12 Oct 2013 13:31:09 +0800
>> To: <ndn-lib at lists.cs.ucla.edu>
>> Subject: [Ndn-lib] ccn_put/pyndn.handle.put(co)
>> 
>> Dear all,
>> I am using pyndn to transmit data, however, I met a serious issue, if the file is big, then every time the transmission will failed. More precisely, after about 2MB is transmitted, ccn_put will fail to transmit any more. 
>>        Does anyone meet this issue before? And any hints?
>> 
>> thanks
>> 
>> My Regards,
>> Xiaoke (Shock) Jiang (蒋小可)
>> 
>> Ph.D. Candidate,
>> Department of Computer Science and Technology,
>> Tsinghua University, Beijing, P.R.China. 100084
>> _______________________________________________ Ndn-lib mailing list Ndn-lib at lists.cs.ucla.edu http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-lib
> 
> _______________________________________________
> Ndn-lib mailing list
> Ndn-lib at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-lib

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-lib/attachments/20131014/41dc186d/attachment-0001.html>


More information about the Ndn-lib mailing list