Chunting Gu

Results 26 comments of Chunting Gu

> Any idea @sprinfall Because the file data is all cached in the memory. What is the size of your test file?

@MyraBaba Please feel free to use. I just pushed the code with a small improvement for the parsing of form data. I'm still investigating the performance issue.

> Ok I will test the new code . But you wll see the slowness of the response.. Something stalling / delaying. > > Best Hi, I use Python Requests...

@MyraBaba ```python import requests url = 'http://127.0.0.1:8000/upload' files = {'file': open('path/to/jpg', 'rb')} r = requests.post(url, files=files) print(r.text) ```

@MyraBaba Sorry, that issue was introduced by my last small optimization. I have reverted the change. I will keep you informed when I find a better solution to optimize the...

> @sprinfall any perf fix? I have two suggestions: 1. Use a larger buffer to read the requests. I tested using 10240, it did improve the speed. Please see new...

I will look into it tonight.

@MyraBaba I found that from the second request in the loop, the file data sent was empty. Please try to move the files definition into inside of the loop. Meanwhile,...

> @sprinfall Hi again, > > I love the webcc its fantastic work. Thanks. > > Do you think that we can embed it to our Qt Project ? Do...

@MyraBaba 1. Run the REST server in a thread in your Qt application (see the **server_states.cc** example). 2. In RestApi (the View), emit signals of some global (or Singleton) QObject...