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
19
votes
6 answers

php connection pooling mysql

I am planning to use MYSQL. Is there a connection pooling extension available? Or what is the normal practice for connection? Is this the one used in every where... mysqli_connect("localhost", "xxx", "xxx", "test"); Do people use just normal…
coool
  • 8,085
  • 12
  • 60
  • 80
19
votes
5 answers

java.net.SocketException: No buffer space available (maximum connections reached?): connect

Hi I am using Apache HTTP Client 4.0 to upload some files on a server based on HTTPS protocol. The uploaded application is running 24x7. Today suddenly it started to throw this exception- java.net.SocketException: No buffer space available (maximum…
user381878
  • 1,543
  • 5
  • 17
  • 30
19
votes
4 answers

How to test/simulate concurrent connections for a website?

HI, I would like test access time for my website (or certain page, or query) WHEN there are 5000 concurrent connections. I want to test it for a high traffic website. is it possible to simulate 5000 concurrent connections? if not, how do people test…
Moon
  • 22,195
  • 68
  • 188
  • 269
19
votes
4 answers

Is rollback needed if java.sql.Connection#commit() throws exception?

According to JAVA documentation, Connection#commit() can throw SQLException. My question is whether or not a rollback should still be issued in this scenario. For example: Connection con = null; try { // assume this method returns an opened…
dcp
  • 54,410
  • 22
  • 144
  • 164
19
votes
4 answers

Android Lollipop defaults to Mobile Data when Wi-Fi has not Internet access?

Android Lollipop seems to default to Mobile Data when the Wi-Fi you are connected to has no Internet access. Does anybody know if this is officially documented somewhere? We have an application that needs to connect to machines via Wi-Fi that do not…
Florian
  • 2,048
  • 3
  • 28
  • 36
19
votes
3 answers

SQL Server Profiler - how do I find which database is being connected?

I've Googled this with no success. I'm using SQL Server Profiler for SQL Server 2008 R2, and I've ensured that for the 'Events Selection' of the trace: I'm reporting all columns for Security Audit > Audit Login + Audit Logout I'm reporting all…
Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
19
votes
4 answers

How to connect an android app to a remote database?

I've been doing my own research but to no avail. I am doing an android app which contains listviews and it needs to query data from a remote database. I would really appreciate it if someone could share good tutorial links that teach that kind of…
Tiara Zarin
  • 207
  • 1
  • 2
  • 8
18
votes
6 answers

S3 Java client fails a lot with "Premature end of Content-Length delimited message body" or "java.net.SocketException Socket closed"

I have an application that does a lot work on S3, mostly downloading files from it. I am seeing a lot of these kind of errors and I'd like to know if this is something on my code or if the service is really unreliable like this. The code I'm using…
Maurício Linhares
  • 39,901
  • 14
  • 121
  • 158
18
votes
4 answers

How to bypass the message-"your connection is not private" on non-secure page using Selenium?

I'm trying to interact with the page "Your connection is not private". The solution of using options.add_argument('--ignore-certificate-errors') is not helpful for two reasons: I'm using an already open window. Even if I was using a "selenium…
Gil Kor
  • 314
  • 1
  • 2
  • 9
18
votes
5 answers

The max_connections in MySQL 5.7

I met a problem, the value of max_connction in MySQL is 214 after I set it 1000 via edit the my.cnf, just like below: hadoop@node1:~$ mysql -V mysql Ver 14.14 Distrib 5.7.15, for Linux (x86_64) using EditLine wrapper MySQL version: 5.7 OS version…
StrongYoung
  • 762
  • 1
  • 7
  • 17
18
votes
2 answers

How do I retrieve a URL from a web site using Java?

I want to use HTTP GET and POST commands to retrieve URLs from a website and parse the HTML. How do I do this?
Johnny Maelstrom
  • 47,581
  • 5
  • 21
  • 18
18
votes
2 answers

Postgres not allowing localhost but works with 127.0.0.1

Postgres not accepting connection if I say -h localhost but it works if I say -h 127.0.0.1 [root@5d9ca0effd7f opensips]# psql -U postgres -h localhost -W Password for user postgres: psql: FATAL: Ident authentication failed for user…
Satish
  • 16,544
  • 29
  • 93
  • 149
18
votes
1 answer

Bluetooth secure vs. insecure

I have been playing around with the bluetooth options on android, and found an app that gave two connection options (secure and insecure). I tried to find some information about it on the internet, but everything I found was pretty vague. I have a…
Marshall
  • 1,353
  • 3
  • 17
  • 38
18
votes
2 answers

Phantomjs loads pages slowly

I'm new into phantomjs, trying it on a standard centOS server (with httpd etc installed, but no modified settings apart from nameservers set to 8.8.8.8 and 8.8.4.4). I'm using the default loadspeed.js file (be it renamed). However, page speeds…
QuintenVK
  • 749
  • 1
  • 9
  • 20
18
votes
2 answers

Entity Framework - How should I instance my "Entities" object

I'm a total newbie at Entity Framework and ASP.Net MVC, having learned mostly from tutorials, without having a deep understanding of either. (I do have experience on .Net 2.0, ADO.Net and WebForms) My current doubt comes from the way I'm instancing…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243