The swelling of epididymitis is due to inflammation caused by bacterial infection. Though the infection has been eradicated, the inflammation takes time, usually 4 to 6 weeks, to subside completely. If it does not, further investigation may be considered.