TransmitFile takes long time to send data
How long? haf day or maybe one day. You may encounter the symptom when calling TransmitFile to send a file from one socket to another socket. There are many possible reasons may make TransmitFile hang, before you capture kernel dump, update NIC driver, close firewall, remove 3rd party LSP, remove network filter driver, you might want to check one simple setting in the first place:
1. Open device manager
2. Expand the tree and go to NIC node
3. Open "properties" of the NIC device
4. Find "Speed and Duplex" settings in "advance" tab, check whether it is "auto". If not, change it back to auto
5. Test your program again