I truss'ed a stuck process and found the following:
19326/2: read(197, 0xFFFFFC7FFE05E080, 8192) (sleeping...)
$ pfiles 19326|grep 197:
197: S_IFSOCK mode:0666 dev:303,0 ino:33422 uid:0 gid:0 size:0
how to get details about this S_IFSOCK? i.e., the source, destination IPs, the TCP port it's listening to/trying to connect to.. etc.