So, I’m having some really extrange issues when interacting Nickel and Hyper. I have a Nickel server, using the latest Git code (need HTTPS, even though it’s currently disabled in my test environment), and the latest Hyper 0.9.10 code.
The thing is I have a method in the client, that calls two times to the nickel server, with the same information. My main script calls that method twice, so, in total, 4 requests are sent from the client to the server. The curious issue is that in the first two, I receive an
Status::OK response, while in the other two I receive a
Not found response. If I put more or less requests in the method, in the first call to the method all will work and in the second all will fail.
Curl is working well with the Nickel server (even though I don’t know how to perform multiple requests at once, or create the same behaviour. And the thing is that I debugged the Nickel server using a custom 404 handler, and printing the headers received in the 404 and in the correct request seems that everything is the same. In fact, the URL received in the requests that fail is a correct URL and request method.
So, I guess that something is going wrong at lower level? are requests not being sent correctly? or not received? Maybe some sort of KeepAlive thing? I really don’t have much clue on what’s going on
Thanks for the help in advance, anyway!