There were significant differences in erythrocyte, hemoglobin, hematocrit, albumin, globulin, creatinine, IgG, IgG/IgM ratio, CD4+ T-lymphocytes, CD19-lymphocytes, CD4+/CD8+ ratio, platelet/lymphocyte ratio, CD19/CD3 ratio, and clinical infection events between the chronic insomnia group and the control group (p < 0.05). The gene discussed is CD40LG; the disease is infection.