added a comment - - edited
Just tried out with a sizable data set contained in postgis, making a plain jane request with curl:
and then killing curl whilst the request was still running (ctrl-c). After a couple of those requests the stack traces above start popping up (remember to add -Dgt2.jdbc.trace=true so that the stack trace will appear fully, otherwise you'll just get a single line warning).
If instead I make the requests stop by adding maxFeatures so that they are short:
then nothing bad happens. Well, actually there is an annoying warning that keeps on popping up:
09 set 11:34:39 WARN [geotools.xml] - org.geotools.data.crs.ReprojectFeatureResults@18d3d6c (org.geotools.data.crs.ReprojectFeatureResults) is not of type [Lorg.opengis.feature.simple.SimpleFeature;
but it's not fatal
Oh, I've run this test on trunk, but Sampo found it on 1.7.x