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.

9426 questions
422
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
  • 16,207
  • 18
  • 81
  • 142
320
votes
21 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
  • 65,792
  • 48
  • 164
  • 225
311
votes
21 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
  • 3,730
  • 6
  • 16
  • 19
242
votes
8 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
  • 2,789
  • 4
  • 17
  • 13
224
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
202
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
  • 10,383
  • 15
  • 56
  • 88
158
votes
19 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
  • 1,855
  • 3
  • 12
  • 6
150
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
  • 7,653
  • 7
  • 43
  • 56
149
votes
10 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 this suggests that the client part of the connection closed the connection. In this…
Darryl
138
votes
14 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 email marketing system at random times varying from [1hour - 4 hours] My website…
Arvind Morwal
  • 1,651
  • 2
  • 12
  • 9
135
votes
9 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
  • 30,761
  • 24
  • 109
  • 167
135
votes
6 answers

iPhone Simulator - Simulate a slow connection?

Is there a way to slow down the internet connection to the iPhone Simulator, so as to mimic how the App might react when you are in a slow spot on the cellular network?
Chris
  • 5,199
  • 15
  • 61
  • 124
128
votes
11 answers

How to grant remote access permissions to mysql server for user?

If I do SHOW GRANTS in my mysql database I get GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD 'some_characters' WITH GRANT OPTION If I am not mistaken, root@localhost means that user root can access the server…
Aufwind
  • 22,034
  • 33
  • 94
  • 149
122
votes
20 answers

How to test an Internet connection with bash?

How can an internet connection be tested without pinging some website? I mean, what if there is a connection but the site is down? Is there a check for a connection with the world?
lauriys
  • 4,134
  • 7
  • 30
  • 40
118
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
  • 6,580
  • 14
  • 51
  • 76
1
2 3
99 100