Re: development question
Tomasz Grobelny <[email protected]>
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 08 of February 2005 11:39, Alexander V. Lukyanov wrote: > On Tue, Feb 08, 2005 at 12:06:52AM +0100, Tomasz Grobelny wrote: > > On Sunday 06 of February 2005 03:34, I wrote: > > > Thanks, for now it more or less works (using Parse, not GetResult). But > > > I have a strange problem: example2.cc as well as my program stall after > > > receiving some data. As I noticed for example2.cc it receives 2271 > > > bytes then waits for 60 seconds and finishes receiving data so that the > > > resulting file contains 2402 bytes. If I increase buffer size to 2048 > > > bytes the program reads all data at once but still stalls for 60 > > > seconds before finishing execution. What may cause the problem? > > > > Does anybody experience such a problem? > > Yes, I could reproduce it. Here is a patch for that example. > Thanks, works nicely. But I have at least one more question. Is it possible to obtain directory attributes in a reliable way? For files there is no problem but calling "ls" on a directory lists it's contents not name and attributes. I can call "ls" for .. instead of . (what if I have no privileges to list files in .. ?) and get data from there but I thought that maybe there exists an appropriate routine to simplify the job. TIA Tomek