I have a PosgreSQLFeatureLayer, when it loads data from the database, or when the map is zoomed in/out, it causes some errors in the database Log file:
could not receive data from client:Unknown winsock error 10061
Unexpected EOF on client connection
I did not notice this before. By the way, I am using Windows Vista x64.
This error may be some shared memory issue of the Postgre, and I found that some people have fixed this issue and produced a patch file. You can find the detail information in the following links:
The link you mentioned to get the patch file is for EnterpriseDB Large File Uploader, I don't think that is the patch file for the issue I mentioned. Also I am still using PosgreSQL 8.3, everything worked well before I upgraded to MapSuite 3.1.182.
I am wondering which product you are using, MapSuite Service Edition or MapSuite Desktop Edition?
And can you specify the versions in more detail which version you are upgraded from? And which version is now you are using (if you are using Desktop Edition, you have to let us know which version for Desktop too)?
We have recreated this error and found that this is really a bug in postgre extension of the latest public release version (3.0.362). This problem has been fixed and it will not exist in the next version.
Thank you for reporting this problem, and any more questions please let me know.
Do you create and close the Npgsql.NpgsqlConnection manually like this?
NpgsqlConnection connection = new NpgsqlConnection(connectString); postgreLayer = new PostgreSqlFeatureLayer(connection, "rail", "oid");
Could you please supply some sample code here so that I can recreate this error in my machine? I can not see this error log message until my application is closed.
This log message is generated because Npgsql is using pool. When your application finishes, .NET shuts down the TCP connections and postgresql logs that.
I think this is harmless, and you can get ride of this message by turning off the connection pool with pooling=false in your connection string. So the connection string could be like this: