• Post Reply Bookmark Topic Watch Topic
  • New Topic

problems to transfer files from windows to linux

 
shen zhang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I hava a question to ask, hope anyone can give some suggestions! I wrote a client server socket program for transferring files. Now I am transferring the files from windows system to Linux. I have a timer in the program which means every 10s, will transfer new files or updated files if there is one. It works perfectly at windows side, however, when I transfer files from windows to Linux, only first minute, it is working well., can transfer files. after that, the timer shows one minute instead of 10 seconds. I want to ask, how come the timer can change on it own if I did not change my program when I run at Linux.

Thanks for your help in advance!

 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the code that manages the timer, and post the output that indicates the timing problem.
 
shen zhang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
client side


Output
the first minute, shows every 10s time: 2014/11/4 10:30:30
2014/11/4 10:30:40
after one minute, it changed to 50s : 2014/11/4 10: 31: 40
2014/11/4 10:32:30
by right, should always show time in every 10 seconds

Thanks
13.png
[Thumbnail for 13.png]
 
shen zhang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Post the code that manages the timer, and post the output that indicates the timing problem.


Hi Ulf

have already uploaded the code on timer. this output shows at Linux side. Thanks, please let me know if you do not understand what I am saying. Thanks for your help
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see it working perfectly ever - at no point are there 10 second intervals. Of course, with network accesses involved, I think 10 seconds is too frequent to begin with.

You should log the timings on the client side as well to make sure the scheduler works as intended.
 
shen zhang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:I don't see it working perfectly ever - at no point are there 10 second intervals. Of course, with network accesses involved, I think 10 seconds is too frequent to begin with.

You should log the timings on the client side as well to make sure the scheduler works as intended.


Hi Ulf

Thanks, you are right, the timing is too frequent. Thanks for your help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!