From: Andrea V. <and...@un...> - 2018-05-28 07:09:46
|
Il giorno sab, 26/05/2018 alle 16.41 -0700, Philip Langdale ha scritto: > > What I have discovered so far (not much, I suppose), when the > script > > (mtp-filetree) accesses the failing directory: > > > > - the directory name (and a number on the left, are we interested > in > > it?) is displayed; > > - sendreq_func is called; > > - getdata_func is called; > > - php_usb_getdata is called; > > - the following directory is displayed. > > Ok, so the ptp_usb_getdata is failing here - this is not a huge > surprise. And it's timing out right? (the 60 second timeout is at > this point?) yes it is, sorry for not having specified it. So the complete steps are: - When the directory contains 124 files: - the directory name is displayed; - sendreq_func is called; - getdata_func is called; - php_usb_getdata is called; --> the delay happens; - the following directory is displayed. - When the directory contains 123 files: - the directory name is displayed; - the following happen 247 times: - sendreq_func is called; - getdata_func is called; - php_usb_getdata is called; - each file in the directory is displayed; - the following directory is displayed. > > So, you'll want to see what happens with ptp_usb_getpacket inside > the > call to ptp_usb_getdata. How many times is it called it is called once each time php_usb_getdata is called > , and what happens > the last time it is called? my test doesn't reveal anything as far as I can tell, do we need to put some debug inside the php_usb_getdata function? > Also useful to compare to the situation > with 123 files where it works correctly. What is the same and what > is > different. Here is the detail: - When the directory contains 123 files: - the directory name is displayed; - the following happen 247 times: - sendreq_func is called; - getdata_func is called; - php_usb_getdata is called; - ptp_usb_getpacket is called; - each file in the directory is displayed; - the following directory is displayed. - When the directory contains 124 files: - the directory name is displayed; - sendreq_func is called; - getdata_func is called; - php_usb_getdata is called; - ptp_usb_getpacket is called; - the delay happens; - the following directory is displayed. Thanks, and bye, Andrea |