# Get ESOCKETTIMEDOUT only when running performance tests

**URL:** <https://community.postman.com/t/get-esockettimedout-only-when-running-performance-tests/60318>\
**Category:** Help Hub\
**Tags:** tests, collection-runner, performance\
**Created:** [April 25, 2024, 1:54am UTC](https://community.postman.com/t/get-esockettimedout-only-when-running-performance-tests/60318 "2024-04-25T01:54:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrossvr](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jrossvr/32/28368_2.png) [@jrossvr](https://community.postman.com/u/jrossvr)\
**Post date:** [April 25, 2024, 1:54am UTC](https://community.postman.com/t/get-esockettimedout-only-when-running-performance-tests/60318/1 "2024-04-25T01:54:56Z")

</div>

I have a long lived POST request (~3mins) API that I am testing. It works fine when run in isolation (SEND) or using the collection runner in functional test mode (can make 20 requests in a row without errors) but fails every request (ESOCKETTIMEDOUT) when running in performance testing mode, even when using only 1 fixed virtual user.

This seems like a timeout issue (since this is not a server error) but I have all of the timeouts (that I can find) set to 0 (infinite) and also tried setting to 20mins with no difference.  
Why would the socket close prematurely in performance testing mode but not functional testing mode?

It seems to me that Functional test mode and performance test mode (with only 1 fixed user) should be effectively the same. Only difference is functional specifies iterations where performance specifies time.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [May 25, 2024, 1:55am UTC](https://community.postman.com/t/get-esockettimedout-only-when-running-performance-tests/60318/2 "2024-05-25T01:55:48Z")

</div>

Closed on May 25, 2024, 1:55am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
