TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gaurav Saxena
NA
5
911
IIS Application Pool hangs ?
Mar 15 2021 8:29 PM
Hi,
I have a web service developed in C# running over Windows 2012 server. This service receives data and connects to destination server for processing. When it establishes connection with remove server it uses only 20 fixed Source Ports. Every new connection is initialized with one of those 20 fixed Source ports. Problem happens when it uses the last source port. Web service can't use the first port again without restarting application pool. I do not see source ports in TIME_WAIT state as well. Strangely web service starts working again after pool re-start but then works until the 20th port only . I know we should have dynamic source ports but there is requirement to setup spurce ports only given 20 port numbers.
I think code is not doing socket close /cleanup properly and thereby not letting me use the same port again without restarting the pool. Can somebdoy please help me in any direction where should I check?
Reply
Answers (
1
)
Hide Tokens from client side "Front-end"
.NET Core REST API development - Which is Best Architecture to choose?