frmdstryr / zhp

A Http server written in Zig
MIT License
355 stars 24 forks source link

workaround for weird stat mtime #4

Closed zhangkaizhao closed 2 years ago

zhangkaizhao commented 3 years ago

as commented.

zhangkaizhao commented 3 years ago

Tested on zig version:

frmdstryr commented 2 years ago

Are you still seeing a segfault without that change?

zhangkaizhao commented 2 years ago

Are you still seeing a segfault without that change?

Hi @frmdstryr , I have tested zhp with the latest commit #4497ca1 using the official Zig 0.9.1 binary distribution packages on both macOS x86_64 and Arch Linux x86_64, and there are no segfaults seen without that change.

One thing to notice is that the testing environments are a little different. The previous testing environment was on an ASUS laptop and running native Arch Linux x86_64 with up-to-date packages. This time I am using a MacBook Pro laptop and the Arch Linux x86_64 environment is running via Vagrant using the VirtualBox provider with up-to-date packages. (My ASUS laptop was broken and retired several months ago.)