Skip to main content
The 2024 Developer Survey results are live! See the results

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.

461 votes
5 answers
408k views

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

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 ...
IamIC's user avatar
  • 18.1k
398 votes
22 answers
231k views

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 ...
Mark Ingram's user avatar
  • 73.1k
386 votes
16 answers
1.1m views

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's user avatar
  • 41.2k
361 votes
27 answers
812k views

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's user avatar
  • 4,328
322 votes
9 answers
838k views

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's user avatar
  • 3,629
272 votes
21 answers
461k views

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

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' ...
garzj's user avatar
  • 3,117
245 votes
2 answers
255k views

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 ...
corgrath's user avatar
  • 12.1k
241 votes
2 answers
359k views

How to create user for a db in postgresql? [closed]

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 ...
user avatar
188 votes
22 answers
696k views

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 ...
user3095838's user avatar
  • 2,165
186 votes
17 answers
1.2m views

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 ...
user avatar
167 votes
16 answers
389k views

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 ...
Jeach's user avatar
  • 8,942
160 votes
10 answers
163k views

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, ...
Jeromy Anglim's user avatar
157 votes
16 answers
395k views

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 ...
skylerl's user avatar
  • 4,120
155 votes
8 answers
80k views

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's user avatar
  • 5,587
155 votes
16 answers
448k views

"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 ...
Arvind Morwal's user avatar

15 30 50 per page
1
2 3 4 5
688