Ole Christian Eidheim
Ole Christian Eidheim
I was maybe a bit unclear in my previous post, from http://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t/14388707#14388707 (scroll down to Windows): "Setting SO_EXCLUSIVEADDRUSE on a socket makes sure that if the binding succeeds, the combination...
I think that as a security measure, and to make sure any networking server performs as in a posix environment, SO_EXCLUSIVEADDRUSE should always be turned on in Windows. I will...
For what I can understand, this is a rather huge security issue for Windows, but what if the different serverapplications are running on different user logins? I'm afraid I do...
Thank you, but I think it would be better to create the workaround through preprocessor `#if ... #else ... #endif`. There is probably a boost preprocessor definition for the currently...
Thank you, and sorry for the late reply. However, I'm thinking that we could determine the boost version based on an already defined boost macro. See for insance here: http://stackoverflow.com/questions/3708706/how-to-determine-the-boost-version-on-a-system
Without looking too closely on this, you can maybe use native_handle as shown here: https://stackoverflow.com/a/44308194. We could maybe add an option for this, but it would require a pull request...
The default resource example shows one way to downloads files. For upload, you'd have to create a post resource that handles this. This library is quite low level in order...
It is not that hard actually, just read a set number of bytes from the request->content stream and store it in a file using write with the byte buffer received...
But when I think about it, I would not use this library to upload large files, since the request->content stream would have the entire file stored in memory.
We should actually add a max Content-Length variable, and not accept larger posts than that variable.