小编use*_*822的帖子

“v8::ArrayBuffer”中的“GetContents”

我使用的是 Mac M1,刚刚升级到 Node 14.17.6LTS。

我尝试使用电子构建器(22.11.7)重建better_sqlite3(7.4.3),但出现以下错误:

“v8::ArrayBuffer”中没有名为“GetContents”的成员

有什么想法如何解决这个问题吗?提前致谢!

gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
In file included from ../../nan/nan.h:2884:
../../nan/nan_typedarray_contents.h:34:43: error: no member named 'GetContents' in 'v8::ArrayBuffer'
      data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
Run Code Online (Sandbox Code Playgroud)

v8 electron electron-builder better-sqlite3

21
推荐指数
1
解决办法
7403
查看次数

60秒后Apache Web服务器超时

我在IBM Softlayer中运行的apache Web服务器+ php在60秒后遇到超时。

这些是我的设置(这些设置后,httpd服务器重新启动)

httpd.conf  
TimeOut 300
Timeout 300
Run Code Online (Sandbox Code Playgroud)

*同时尝试了这两项,也只尝试了一次TimeOut和Timeout。

php.ini
max_execution_time = 300  
Run Code Online (Sandbox Code Playgroud)

PHP代码:

<?php
set_time_limit(10000);  //Just to make sure
sleep(70);
echo "Successful";
?>  
Run Code Online (Sandbox Code Playgroud)

使用命令提示符

php test.php  
Run Code Online (Sandbox Code Playgroud)

结果成功

使用不同的浏览器(Chrome,Firefox和Safari)

http://mysite/test.php    
Run Code Online (Sandbox Code Playgroud)

结果:恰好在60秒后超时!

日志

php_error.log和httpd error_log
没有错误!

我找到了与此相关的类似文章,但每个人都指向max_execution_time和Timeout。到目前为止,没有帮助。
非常感谢!

php apache timeout ibm-cloud-infrastructure

6
推荐指数
1
解决办法
9475
查看次数