-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Francisco Figueiredo Jr. wrote: > > Hi all, > > I'm playing with Npgsql to implement CommandTimeout feature. > > My idea is to use Socket.Poll method in order to do that. > > After adding the infrastructure code to Npgsql, I faced an strange > problem, or maybe it is not strange, just my knowledge about it is :) >
Ok. My fault, as always... After checking that another program I had written worked with Poll and seeing what was going on with ethereal, I found out that I forgot to flush the socket data. Doh! :) After that, Poll worked from the first data exchange as it would if I had done it right the first time. Btw, after checking Mono sources, Poll wasn't working but Read was, as I previously stated, because Mono code wisely flush any pending writes before doing read. Thanks Mono for doing the right thing! - -- Regards, Francisco Figueiredo Jr. http://fxjr.blogspot.com Npgsql Lead Developer http://pgfoundry.org/projects/npgsql MonoBrasil Project Founder Member http://monobrasil.softwarelivre.org - ------------- "Science without religion is lame; religion without science is blind." ~ Albert Einstein -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRClRG/7iFmsNzeXfAQJYrwf+J78v7dYd2298Qwr0kOkRwpY8ag65hCHp YW90G1qF7rSwvgHah1R/MBwrbZA1ddoLuFCfh6QnR68a/svW0pXC0FlxBdV3D9QE 8HY/p90UUvnpWkzhgwpo669F1mVVd48xEOMi0yS0maHCZ4IXJ40UhEEb4dZoya5y 10Ccf4Ki3Qfyo5ooA64eyMAmDMp6fS7LWR0x0bmhKDSfBKyYBA+5aIMZfs0zGuwu 1Ni2mkh/HOJIoD5f3v0A/FcE8G3Kmy7kyItx2tpNwIrImOOQoAbzwQ2WCaXkvaRa 4OlULjYy2TI7Qvh6QWrA7Y1tqbnzkTU2nJJMJz1RMxEJ/5sUgconTA== =zxwn -----END PGP SIGNATURE----- _______________________________________________________ Yahoo! doce lar. Faça do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
