Questions tagged [connection]

Refers to a connection used to transfer data between two endpoints, such as between a client and a web, database, web service or other server.

A connection is a session established between two communications endpoint applications.

10252 questions
458
votes
5 answers

How do multiple clients connect simultaneously to one port, say 80, on a server?

I understand the basics of how ports work. However, what I don't get is how multiple clients can simultaneously connect to say port 80. I know each client has a unique (for their machine) port. Does the server reply back from an available port to…
IamIC
  • 17,747
  • 20
  • 91
  • 154
385
votes
22 answers

Artificially create a connection timeout error

I've had a bug in our software that occurs when I receive a connection timeout. These errors are very rare (usually when my connection gets dropped by our internal network). How can I generate this kind of effect artificially so I can test our…
Mark Ingram
  • 71,849
  • 51
  • 176
  • 230
352
votes
14 answers

How to connect to MySQL from the command line

How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're already in MySQL.
Leahcim
  • 40,649
  • 59
  • 195
  • 334
343
votes
25 answers

Login to Microsoft SQL Server Error: 18456

I am getting this error while trying to connect to the SQL Server. Microsoft SQL Server Error: 18456 Can anybody tell me what the error code means?
merazuu
  • 4,118
  • 6
  • 18
  • 19
305
votes
9 answers

MySQL show status - active or total connections?

When I run show status like 'Con%' it shows the number of connections, which is 9972 and constantly growing. Is this an active number of connections or connections made in total?
Michael
  • 3,449
  • 4
  • 19
  • 14
236
votes
2 answers

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

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…
corgrath
  • 11,673
  • 15
  • 68
  • 99
236
votes
2 answers

How to create user for a db in postgresql?

I have installed PostgreSQL 8.4 on my CentOS server and connected to root user from shell and accessing the PostgreSQL shell. I created the database and user in PostgreSQL. While trying to connect from my PHP script it shows me authentication…
user925355
207
votes
21 answers

No internet connection on WSL Ubuntu (Windows Subsystem for Linux)

Recently I installed WSL Ubuntu 18.04 on my Windows machine, but nothing seems to work properly, because I have no internet access. I tried a few commands and sudo apt update says 'Connection failed' and ping google.com literally takes forever as…
garzj
  • 2,427
  • 2
  • 8
  • 15
183
votes
15 answers

java.net.SocketException: Connection reset

I am getting the following error trying to read from a socket. I'm doing a readInt() on that InputStream, and I am getting this error. Perusing the documentation suggests that the client part of the connection closed the connection. In this…
Darryl
183
votes
21 answers

How do I start Mongo DB from Windows?

I have installed MongoDB on my Windows 7 (64 bit) machine. I have created the path data/db too but when I tried to start mongodb using the command 'C:\mongodb\bin\mongod.exe', it is not starting. It is showing admin web console waiting for…
user3095838
  • 2,105
  • 3
  • 14
  • 6
165
votes
16 answers

How to detect the physical connected state of a network cable/connector?

In a Linux environment, I need to detect the physical connected or disconnected state of an RJ45 connector to its socket. Preferably using BASH scripting only. The following solutions which have been proposed on other sites do NOT work for this…
Jeach
  • 8,656
  • 7
  • 45
  • 58
155
votes
10 answers

Using R to download zipped data file, extract, and import data

@EZGraphs on Twitter writes: "Lots of online csvs are zipped. Is there a way to download, unzip the archive, and load the data to a data.frame using R? #Rstats" I was also trying to do this today, but ended up just downloading the zip file…
Jeromy Anglim
  • 33,939
  • 30
  • 115
  • 173
152
votes
16 answers

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

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 e-mail marketing system at random times. (varying from 1-4 hours) My website is…
Arvind Morwal
  • 1,811
  • 2
  • 14
  • 9
151
votes
16 answers

Python [Errno 98] Address already in use

In my Python socket program, I sometimes need to interrupt it with Ctrl-C. When I do this, it does close the connection using socket.close(). However, when I try to reopen it I have to wait what seems like a minute before I can connect again. How…
skylerl
  • 4,030
  • 12
  • 41
  • 60
150
votes
12 answers

Draw a connecting line between two elements

How can I draw a line between two or more elements to connect them? Any combination of HTML/CSS/JavaScript/SVG/Canvas is fine. If your answer supports any of these, then do mention it: draggable elements draggable/editable connections element…
Bakhtiyor
  • 7,198
  • 15
  • 55
  • 77
1
2 3
99 100