Questions tagged [connection]

A connection generally refers to a TCP/IP connection, that is established as the result of the handshake between 2 hosts.

A connection generally refers to a TCP/IP connection, that is established as the result of the handshake between 2 hosts. But can also refer to the establishment of end to end connectivity of the underlying link layer, or a database connection, or some other data-orientated communication that proceeds after an initial negotiation phase.

757 questions
10
votes
1 answer

Remote connection to MySQL server takes very long

I have a MySQL 5.0.75 server running on my Linux notebook to which I want to connect from another machine in the local network. This connection takes 5-6 seconds: mysql -h 172.22.65.101 -u myuser -p123 A ping to the MySQL host: PING 172.22.65.101…
9
votes
3 answers

Log connections to program

Besides for using iptables to log incoming connections.. Is there a way to log established inbound connections to a service that you don't have the source to (suppose the service doesn't log stuff like this on its own)? What I'm wanting to do is…
Zac
  • 93
  • 4
9
votes
2 answers

tcptrack shows SYN_SENT connections, does that mean the SYN package reached the server?

our server suffered a serious connection timeout problem, so we track tcp connection with tcptrack we found out that, if the client started to connect to the server, tcptrack shows the connection, but in SYN_SENT status, and netstat -nat shows…
xpu
  • 103
  • 1
  • 1
  • 6
9
votes
2 answers

Impact of Connection Close vs Keep-alive

I'm configuring our servers, and due to the nature of our load balancer, we can't send connection keep-alive headers. I'm trying to determine the impact of sending these headers to both the end-user and the server. Will either one notice anything?
Willemk
  • 117
  • 1
  • 2
  • 6
9
votes
2 answers

Connection error to mysql database

My application needs to do quite frequent connects to a mysql database on another machine. However I get frequent errors on connection; I can usually eventually connect but after many retries. The error message I get is: Mysql.mysql(): Couldn't…
Zitrax
  • 794
  • 2
  • 11
  • 21
9
votes
1 answer

PHP/mySQL: how to debug a 'too many connections' error?

I am working right now with PHP website on my client's dedicated server and I get periodically an error too many connections but ~5 users are browsing this page. In phpMyAdmin I can see that max connections variable is set to 400. On our local MySQL…
hsz
  • 259
  • 2
  • 7
8
votes
2 answers

What does ConnectTimeout in ssh_config mean?

Local and remote os are all Debian8. I want to keep ssh alive for a long time. The configuration file /etc/ssh/ssh_config on my client(local) side. Host * ServerAliveInterval 60 ServerAliveCountMax 10000 The configuration file…
showkey
  • 115
  • 1
  • 4
  • 19
8
votes
4 answers

Able to connect by SSH, but not x2go

I am having trouble connecting to a remote server with X2GO using a DSA key. Connecting works fine over SSH, but when I try to connect with X2GO, it goes immediately to the username/password box and doesn't want to use the private key I specify in…
Mike
  • 689
  • 3
  • 9
  • 27
8
votes
3 answers

Cannot connect to Redis installed on VirtualBox running Ubuntu from Windows 7

I've setup an Ubuntu image on VirtualBox on a Windows 7 host. On the Ubuntu guest I've installed Redis which runs on port 6379 (TCP) by default. I've setup port forwarding using the VirtualBox GUI for SSH and verified that by connecting to…
mep-um
  • 195
  • 1
  • 1
  • 4
8
votes
3 answers

Can I make TCP/IP session to run less than 60 seconds?

Our server is overloaded with TCP/IP sessions, we have 1200 - 1500 of them. Most of them are hanging in TIME_OUT state. It turns out that a connection in TIME_OUT state occupies a socket until 60 second time-out is elapsed. The problem is that the…
par
  • 1,263
  • 3
  • 12
  • 15
7
votes
1 answer

https lingering TIME_WAIT connections

From my client PC I'm connecting to a webserver, it uses HTTPS only. When I connect I see in TCPView (sysinternals tool alternative to netstat) a lot of TIME_WAIT connections to the https endpoint. Lots of the time I see 11 connections lingering for…
Jaap
  • 367
  • 3
  • 16
7
votes
4 answers

Load balancing MySQL using HAProxy: Got an error reading communication packets?

I've set up load balancing MySQL slaves using HAProxy via a xinetd. 2 load balancers shared a virtual IP that is managed by Pacemaker: crm configure show: node SVR120-27148.localdomain node SVR255-53192.localdomain primitive failover-ip…
quanta
  • 51,413
  • 19
  • 159
  • 217
7
votes
2 answers

What is the proper HTTP status for "too many connections?"

I am working on an HTTP server which is supposed to only allow a certain amount of connections per user. How do I gracefully tell the user that more than n connections are not permitted. I tried answering the n+1th request with a 403 but apparently…
niklasfi
  • 459
  • 1
  • 8
  • 16
7
votes
2 answers

Certificates in SQL Server 2008

I need to implement SSL for transmissions between my application and Sql Server 2008. I am using Windows 7, Sql Server 2008, Sql Server Management Studio, and my application is written in c#. I was trying to follow the MSDN page on creating…
Brandi
  • 177
  • 1
  • 6
6
votes
2 answers

random CONNECTION_RESET on apache2.4 debian 9

My server has some strange behaviour and I just cant find the cause. I've been looking everywhere. I will pay 200$ worth of bitcoin to anyone who can figure this out. The problem: When requesting any resource from apache (page, image, css, js), it…
Manuel Otto
  • 61
  • 1
  • 6
1
2
3
50 51