keepAlive在阿波罗订阅方面遇到了一些麻烦。每当我将时间设置为秒或更多秒时,侦听订阅错误就会退出。
{
"error": "Could not connect to websocket endpoint ws://website.test:8000/graphql. Please check if the endpoint url is correct."
}
这是ApolloServer设置
const apollo = new ApolloServer({
introspection: true,
playground: true,
我需要使用HttpWebRequest发送这样的请求:
POST https://sap.site.com.mx/sap/bw/BEx?SAP-LANGUAGE=ES&PAGENO=1&CMD=PROCESS_VARIABLES&REQUEST_NO=0&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VARID= HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Accept: te
我很难理解keepAlive选项传递给nodeJS mongo驱动程序。这个说keepAlive取布尔值,keepAliveInitialDelay是used to wait before initiating keepAlive on the TCP socket
这个表示keepAlive取一个整数值并读取The number of milliseconds to wait before initiating keepAlive on the TCP socket.
我尝试使用这两种方法,但没有发现任何不同之处,我还尝试了使用true和false值来表示keepAlive,对于keepAl
我正在使用来发出HTTP请求。
axios提供了在Node中使用时在中指定的选项。
选项是:
const agentOptions = {
keepAlive: true, // Keep sockets around even when there are no outstanding requests, so they can be used for future requests without having to reestablish a TCP connection. Defaults to false
keepAliveMsecs: 1000, // When