[Bug 28269] ws2_32: sock.ok test slow

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Sep 3 17:40:41 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=28269

Bruno Jesus <00cpxxx at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |00cpxxx at gmail.com

--- Comment #1 from Bruno Jesus <00cpxxx at gmail.com> 2011-09-03 17:40:41 CDT ---
Is it a really bad problem? My summary shows:
sock: 2108231 tests executed (22 marked as todo, 0 failures), 0 skipped.

It does more than 2.000.000 tests, although most of them are receives of 1 byte
to test the sockets implementation stability (as far as I can see). It sends
1Mb and then receives one byte at a time, maybe by reducing this buffer length
the tests could complete much faster.

>From tests/sock.c:

3005     const int buflen = 1024*1024;
..
3046     ret = send(src, buffer, buflen, 0);
...
3068     for (i = 0; i < buflen; ++i)
3069     {
3070         int j = 0;
3071 
3072         ret = recv(src, buffer, 1, 0);
3073         while (ret == SOCKET_ERROR && GetLastError() == WSAEWOULDBLOCK &&
j      < 100)
3074         {
3075             j++;
3076             Sleep(50);
3077             ret = recv(src, buffer, 1, 0);
3078         }


There are several Sleeps() and WaitForSingleObjects with values ranging from 50
to 1000 (ms).

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list