Understanding Why File Downloads Using WebDAV Fail

Asked 2 years ago, Updated 2 years ago, 37 views

Prerequisites


From a server using WebDAV Creating a program to download files.
The client accesses the server approximately once every five seconds.
The server and client are directly connected by a LAN cable.
Client is Win10 and server is Linux (Distribution is not allowed)
(I'm sorry, but I can't write about the development environment because there is a specific possibility.)

What do you want to do


Rarely from the WebDAV server Failed to download file.
(The frequency is about once after half a year of operation)

Other than that, I can download the file without any problems.
What are the possible reasons for the failure of downloading files under the current situation?
Incidentally, after TCP notification of the URI of the file from the server to the client,
The client will use the URI to download the file, so
URI, the filename is correct.

*I wish I had kept the error log when the download failed.

because it was not created to log the error log. I don't know the cause.From now on, I will try to keep a log, but I would like to know the possible factors in the current situation.
It is unlikely, but we are also considering the possibility of a cable disconnection.

linux

2022-09-30 14:45

1 Answers

For example, a test environment is available.

  • WebDAV servers: (proven) nginx, Apache, etc.
  • Client: (proven) curl, wget, etc. (GET or POST enabled)
    Set the log to the maximum in these environments

In this case, if there is a communication problem, the following may be considered.

In the former case, as long as the code is not shown, the processing content is unknown, and the possibility that the processing content is wrong cannot be discarded (such as timing of acquisition).
If something goes wrong on the software side, that's the only way to erase it.
(There may be a problem with the download size.)

If you replace the client with an app using LabVIEW from the above environment, creating the app will be a problem in addition to the above.
Is it based on stream-oriented communication (as TCP)?

Of course, you can't disclose the source or development environment in a business program, but for example, if the test code in another language shows it, you may be able to point it out.

As @cubick indicated in the comment, if you show it again

  • I can't do anything with the information provided, I'm short of it
  • Third parties will only be speculating

So

What are the possible reasons for the failure of downloading files under the current situation?

The answer to
is as shown above. (This is a vague question, so the answer must be like this, and the scope must be wider.)


(from the above answers) If I were to raise some of the measures I could take,

If you have any additional questions, please add them to the question.
If it's going to expand, you can ask another question.


2022-09-30 14:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.