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
61
votes
4 answers

Android event for internet connectivity state change

I am making an app where a user is uploading information and files to my server on a somewhat frequent basis. This is done in new threads through a dedicated uploader service. I know from this thread Detect whether there is an Internet connection…
akhalsa
  • 2,303
  • 3
  • 25
  • 43
60
votes
2 answers

urllib3 connectionpool - Connection pool is full, discarding connection

Does seeing the urllib3.connectionpool WARNING - Connection pool is full, discarding connection mean that I am effectively loosing data (because of lost connection) OR Does it mean that connection is dropped (because pool is full); however, the…
JavaFan
  • 1,295
  • 3
  • 19
  • 28
60
votes
11 answers

Oracle - What TNS Names file am I using?

Sometimes I get Oracle connection problems because I can't figure out which tnsnames.ora file my database client is using. What's the best way to figure this out? ++happy for various platform solutions.
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
58
votes
15 answers

CodeIgniter: Unable to connect to your database server using the provided settings Error Message

I have been using CI just fine using the MySQL driver. I want to use the MySQL driver instead, but as soon as I change it (just add the ‘i’ at the end of MySQL, and added the port number) I get the following error message A Database Error…
Onema
  • 7,331
  • 12
  • 66
  • 102
58
votes
4 answers

Why does PDO print my password when the connection fails?

I have a simple website where I establish a connection to a MySQL server using PDO. $dbh = new PDO('mysql:host=localhost;dbname=DB;port=3306', 'USER', 'SECRET', array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET…
The Surrican
  • 29,118
  • 24
  • 122
  • 168
57
votes
14 answers

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

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…
heythatsmekri
  • 781
  • 2
  • 8
  • 16
57
votes
5 answers

Making sure that psycopg2 database connection alive

I have a python application that opens a database connection that can hang online for an hours, but sometimes the database server reboots and while python still have the connection it won't work with OperationalError exception. So I'm looking for…
HardQuestions
  • 4,075
  • 7
  • 34
  • 39
56
votes
4 answers

Bad state: Insecure HTTP is not allowed by platform:

I'm having the following problem: E/flutter ( 7144): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Bad state: Insecure HTTP is not allowed by platform: http://myIPv4:PORT/PATH. And this is the backend that I can access: I…
55
votes
13 answers

Updating from svn repository returns "Could not read chunk size" error

When updating from subversion repository using tortoise svn client I get error looking like that: Could not read chunk size: An existing connection was forcibly closed by the remote host. It doesn't prevent me from updating, just interrupts update…
Denis
  • 566
  • 1
  • 5
  • 8
55
votes
7 answers

How to limit speed of internet connection on Android emulator?

I need to test app for work with slow internet connection. How to simulate slow internet connection on Android emulator?
mobiledev Alex
  • 2,228
  • 2
  • 28
  • 30
55
votes
1 answer

What exactly is a connection in R?

I've read through and successfully use ?connections in R but I really don't understand what they are. I get that I can download a file, read and write a compressed file, ... (that is I understand what the result of using a conection (open, do stuff,…
andrew wong
  • 827
  • 1
  • 7
  • 9
51
votes
1 answer

How to connect to MongoDB running in Docker container?

I'm running a Docker container on MacOS that starts a Postgres server and MongoDB server as follows: docker run -p 80:80 -p 27017:27017 dockertest * Starting PostgreSQL 9.3 database server ...done. * Starting database mongodb ...done. The…
MaVe
  • 1,715
  • 5
  • 21
  • 29
51
votes
11 answers

what is java.io.EOFException, Message: Can not read response from server. Expected to read 4 bytes, read 0 bytes

This question has been asked a couple of times in SO and many times in other sites. But I didn't get any satisfiable answer. My problem: I have a java web application which uses simple JDBC to connect to mysql database through Glassfish…
mukund
  • 2,866
  • 5
  • 31
  • 41
51
votes
3 answers

Managing connection to redis from Python

I'm using redis-py in my python application to store simple variables or lists of variables in a Redis database, so I thought it would be better to create a connection to the redis server every time I need to save or retrieve a variable as this is…
jeruki
  • 1,860
  • 3
  • 20
  • 27
50
votes
10 answers

Connection string with relative path to the database file

I load data from sdf database in winforms App. I use full path to the database file . Example : conn = new SqlCeConnection { ConnectionString ="Data Source=F:\\My Documents\\Project1\\bin\\Debug\\Database.sdf" }; I d like use a relative path…
Martin
  • 501
  • 1
  • 4
  • 4