connection

Help troubleshooting SqlException: Timeout expired on connection, in a non-load situation

三世轮回 提交于 2019-12-17 10:17:43
问题 I have a server hosting a website of mine that has almost zero-traffic. A few people (< 20) enter the site every day, and a few RSS readers are subscribed to some feeds we put out. Almost every night, an RSS reader will hit us in the middle of the night and get an exception that the website can't connect to the SQL Server because of a Timeout in the connection. The details are extremely weird, so I'm looking for some help on what could be the issue, since I don't know where to start looking

ini_set, set_time_limit, (max_execution_time) - not working

心已入冬 提交于 2019-12-17 07:48:08
问题 If I do set_time_limit(50) or ini_set('max_execution_time',50) , then when I echo ini_get('max_execution_time') on my localhost i get 50 , but when I do this on another server it echoes the default 30 and completely ignores my request. Why is this? 回答1: You can not change this setting with ini_set() when running in safe mode. The only workaround is to turn off safe mode or by changing the time limit in the php.ini. -- PHP manual, Runtime Configuration, description of max_execution_time Many

Apache Server (xampp) doesn't run on Windows 10 (Port 80)

ⅰ亾dé卋堺 提交于 2019-12-17 07:02:13
问题 I have installed the Windows 10 Insider Program. Everything works, except Apache. When I try to start it, it says that port 80 is blocked. Is there a way to unblock it or tell Apache to use another port instead? I was using Windows 7 before. I had trouble with port 80 with skype, but i have disabled it. 回答1: I had the same problem on windows 10, IIS/10.0 was using port 80 To solve that: find service "W3SVC" disable it, or set it to "manual" French name is: " Service de publication World Wide

RMI connection refused on localhost

孤者浪人 提交于 2019-12-17 06:18:56
问题 I am trying to learn RMI coding and when I run server side of RMI I get connection refused. This is my server main method public static void main(String[] args)throws Exception { Implementation impl=new Implementation(); Naming.rebind("//localhost:2020/RMI", impl); System.out.println("Implementation has been bind to the name RMI and is ready for use"); } I believe that the code for Implementation does not matter as it simply is the implemented interface that will run the code. The exception I

ClassNotFoundException with PostgreSQL and JDBC

岁酱吖の 提交于 2019-12-17 06:18:25
问题 I am having some difficulty in making connectivity with Java and PostgreSQL Database.I have download the JDBC4 Postgresql Driver, Version 9.2-1002 driver and properly set the application ClassPath. My code is as under import java.sql.*; public class JavaPostGreSQLConnectivity { public static void main(String[] args) { DB db = new DB(); db.dbConnect("jdbc:postgresql://127.0.0.1:5432/TestDB", "postgres","pwd"); } } class DB { public DB() {} public void dbConnect(String db_connect_string, String

java.rmi.ConnectException: Connection refused to host: 127.0.1.1;

无人久伴 提交于 2019-12-17 04:56:10
问题 java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is: java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:128) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod

What is the difference between connection and read timeout for sockets?

荒凉一梦 提交于 2019-12-17 04:39:28
问题 3 questions: What is the difference between connection and read timeout for sockets? What does connection timeout set to "infinity" mean? In what situation can it remain in an infinitive loop? and what can trigger that the infinity-loop dies? What does read timeout set to "infinity" mean? In what situation can it remain in an infinitive loop? and what can trigger that the infinity-loop dies? 回答1: 1) What is the difference between connection and read timeout for sockets? The connection timeout

How to connect to mssql using pdo through PHP and Linux?

China☆狼群 提交于 2019-12-17 04:28:51
问题 I'm trying to for a new PDO connection using the following code. new PDO("mssql:driver=????;Server={$serverName};Database={$databaseName}", $username, $password, array(PDO::ATTR_PERSISTENT => false, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); I'm not sure what drivers to use? Or how to install them. I can connect perfectly fine using the mssql_connect function in PHP but I want to use the PDO library instead. My php.ini settings for mssql are: ssql MSSQL Support enabled Active Persistent

How do I shutdown a Node.js http(s) server immediately?

。_饼干妹妹 提交于 2019-12-17 04:26:10
问题 I have a Node.js application that contains an http(s) server. In a specific case, I need to shutdown this server programmatically. What I am currently doing is calling its close() function, but this does not help, as it waits for any kept alive connections to finish first. So, basically, this shutdowns the server, but only after a minimum wait time of 120 seconds. But I want the server to shutdown immediately - even if this means breaking up with currently handled requests. What I can not do

“The underlying connection was closed: An unexpected error occurred on a send.” With SSL Certificate

爱⌒轻易说出口 提交于 2019-12-17 03:28:55
问题 Issue : I get this exception "THE UNDERLYING CONNECTION WAS CLOSED: AN UNEXPECTED ERROR OCCURRED ON A SEND" in my logs and it is breaking our OEM integration with our email marketing system at random times varying from [1hour - 4 hours] My website is hosted on a windows server 2008 R2 with IIS 7.5.7600. This website has a large number of OEM components and comprehensive dashboard. Everything works fine with all the other elements of the website except with one of our email marketing component