ForwardedPortLocal hang connection to mysql on large query

Sep 22, 2013 at 5:27 PM
Hi,I create a ForwardedPortLocal on start of application and stops it on exit and it works fine. The application ask mysql about 20 diffrent querys and 19 of them works. The one that hangs the application is a massive data store query that stores thousens of row to the db. I build up the query like this:INSERT MyTable (col1,col2,col3) VALUES 
(Value1,value2,value3),
(Value1,value2,value3),
(Value1,value2,value3),
(Value1,value2,value3),
(Value1,value2,value3)
......

If i build up the query like this with 1000 values it will just hang. If i reduse it to just 300 it works fine.

It works greate if I skipp the ssh.net part in the application and create a tunnel outside the application with a some other ssh application.

I can reproduce this error every time, does not work with 1000,900,800,700,600,500 or 400 but with 300 it workes every time.I tested to run the upload in a thread and added a button to check the ssh client and the ForwardedPortLocal and both of them is activ if i ask them when it is hanged.

Someone else that got this problem ans solved it?