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
17
votes
1 answer

Using WCF to wrap an existing connected stream

I have both ends of a bi-directional connected Stream, which I want to do some communication over. The underlying implementation behind the stream isn't important, I want to work at the Stream level... Rather than implement my own communications…
Mark
  • 1,784
  • 16
  • 26
17
votes
5 answers

Solving "MySQL server has gone away" errors

I have written some code in PHP that returns the html content from .edu domains. A brief introduction is given here: Errors regarding Web Crawler in PHP The crawler works fine when the number of links to crawl are small (something around 40 URLS)…
Rafay
  • 6,108
  • 11
  • 51
  • 71
17
votes
4 answers

The underlying connection was closed: An unexpected error occurred on a receive

I'm here because I have a problem while downloading some files through ftp protocol. It's weird because it occurs occasionally and even for the same single file. Just a precision: I'm downloading very large files (from 500 Mo to 30Go) Here are the…
Hariboox
  • 171
  • 1
  • 1
  • 4
17
votes
4 answers

Currently connected bluetooth device android

I can able to see two states in Bluetooth device in Android. 1. Paired 2. Connected. - I am trying to get currently connected Bluetooth device in Android. But I am getting only paired device list from adapter.getBondedDevices(); I need currently…
Ria
  • 873
  • 1
  • 10
  • 25
17
votes
1 answer

How to accept incoming bluetooth connection on Windows 7 desktop (with a c++ or c# program)

I am writing a BT app on an android to connect to a lab device/hardware. At the present time I have a device on loan. However it is not possible for me to always have one while I am developing for it, (commuting, out of town, etc) Therefore I am…
Tim
  • 20,184
  • 24
  • 117
  • 214
17
votes
11 answers

MySql connection, can I leave it open?

Is it smart to keep the connection open throughout the entire session? I made a C# application that connects to a MySql database, the program both reads and writes to it and the application has to be running about 10 hours a day non-stop. Are there…
Pieter888
  • 4,882
  • 13
  • 53
  • 74
17
votes
3 answers

ini_set, set_time_limit, (max_execution_time) - not working

If I do set_time_limit(50) or ini_set('max_execution_time',50), then when I echo ini_get('max_execution_time') on my localhost i get 50, but when I do this on another server it echoes the default 30 and completely ignores my request. Why is this?
Mickey
  • 2,285
  • 6
  • 26
  • 37
16
votes
7 answers

MySQLdb connection problems

I'm having trouble with the MySQLdb module. db = MySQLdb.connect( host = 'localhost', user = 'root', passwd = '', db = 'testdb', port = 3000) (I'm using a custom port) the error I get is: Error 2002: Can't connect to local…
Ian
  • 24,116
  • 22
  • 58
  • 96
16
votes
1 answer

How to programmatically connect 2 android devices with bluetooth?

I am developing an application which should connect 2 Android devices through Bluetooth automatically. Let's say they are already paired. Is it possible to achieve that?
Miky
  • 942
  • 2
  • 14
  • 29
16
votes
2 answers

Dbeaver no active connection

Running Dbeaver 21.3.0 on ubuntu linux 21.1. The problem I have is that when trying to execute a query I get a "no active connection error". However in the Database navigator screen I have an active remote ms-sql-server connection, can see the…
Jim Maas
  • 1,481
  • 2
  • 16
  • 36
16
votes
1 answer

Could not create the driver from NHibernate.Driver.OracleDataClientDriver

Here's the code raising the exception: public static class NHibernateSessionManager { private static ISessionFactory sessionFactory = new Configuration().Configure().BuildSessionFactory(); public static ISession GetSession(string clientId) …
bevacqua
  • 47,502
  • 56
  • 171
  • 285
16
votes
3 answers

How to replace default hikari cp to tomcat pool on spring boot 2.0

I have migrated spring boot application to 2.0 and found out some problems with hikari connection pool. When I am fetching database data this results to hikari cp timeout ie. connection is not available. I don't know why when in the previous version…
Luke
  • 1,163
  • 2
  • 11
  • 19
16
votes
6 answers

Using POSIX message queues instead of TCP sockets - how to establish "connection"?

I have client and server programs which now communicate via TCP. I'm trying out using POSIX message queues instead (in cases where the client and server are on the same machine, of course). My hope is that it will improve performance (specifically…
John Zwinck
  • 239,568
  • 38
  • 324
  • 436
16
votes
2 answers

Setting TCP timeout for SQL connection in Go

When I connect to database (using standard go sql library) using VPN and VPN interface goes down, there's a 75 seconds timeout when I try to do SQL query, no matter if the interface goes up meanwhile. I'd like to decrease this timeout to some…
Peter Krejci
  • 3,182
  • 6
  • 31
  • 49
16
votes
5 answers

How to check Internet connection on a Cordova App?

I tried some suggestions, such as navigator.onLine, but even in flight mode, my app "thinks" its online. I found some suggestions with ajax too, but I just want to check if I'm online to open an external web page. If not, I intend to show a message…
Geziel Carvalho
  • 191
  • 1
  • 3
  • 12