in reply to DBI & setsockopt

Looks to me like you'll need to take a look at the DBD::mysql module. Looks like mysql.xs calls mysql_dr_connect in dbdimp.c. You may be able to set the options in one of these, but I'm not sure how you would correctly go about doing it.

Once you figure it out I'd be interested in hearing what you ended up doing.

Steve