[Libwebsockets] most recent master commit / breaking changes?

Joel Winarske joel.winarske at gmail.com
Thu Mar 16 23:29:15 CET 2017


Regarding 2.  As a test I swapped the win32 calls in lws-plat-win.c for
    _open
    _close
    _lseek
    _read
    and minor change for filesize call.

This makes fstat happy, and files are served.  I'm rolling with this for
now...



On Thu, Mar 16, 2017 at 2:20 PM, Joel Winarske <joel.winarske at gmail.com>
wrote:

> Hi Andy,
>
> I just did a pull on master, and now am seeing a couple issues with things
> on Windows:
>
> 1. When stepping into lws_vfs_file_open *flags == 0xcccccccc, not 0. No
> idea what's up with this. It fails, unless I update the value to 0 in the
> debugger.
>
> uint32_t flags = LWS_O_RDONLY;
> fd = lws_vfs_file_open(lws_get_fops(vhd->context), file, &filesize,
> &flags);
> if (fd == NULL) {
> lwsl_notice("file not opened %s\n", file);
> return -1;
> }
>
> 2.  Serving is somehow broken.  I haven't changed my config file.  Is
> there a breaking change, or modification required for conf file I missed?
> The file is present.
>
> [2017/03/16 14:08:58:2111] INFO: Method: GET request for '/ui/index.html'
> [2017/03/16 14:08:58:2121] INFO: client indicates GZIP is acceptable
> [2017/03/16 14:08:59:6864] INFO: unable to stat
> C:/etc/lwsws/www/ui/index.html
> [2017/03/16 14:08:59:6874] INFO: LWS_CALLBACK_HTTP closing
>
> I get a break point on the last line.  This never happened before:
> template <typename StatStruct>
> static int __cdecl common_fstat(int const fh, StatStruct* const result)
> throw()
> {
>     _VALIDATE_CLEAR_OSSERR_RETURN(result != nullptr, EINVAL, -1);
>     *result = StatStruct{};
>
>     _CHECK_FH_CLEAR_OSSERR_RETURN(fh, EBADF, -1);
>     _VALIDATE_CLEAR_OSSERR_RETURN(fh >= 0 && fh < _nhandle, EBADF, -1);
>
>
> Thanks,
> Joel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20170316/ac370330/attachment-0002.html>


More information about the Libwebsockets mailing list