home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-02.Z / 94-02 / text0151.txt < prev    next >
Encoding:
Text File  |  1994-02-28  |  1.7 KB  |  32 lines

  1. I've noticed a **lot** of network traffic about delays that are encountered 
  2. while using Trumpet winsock.  As the developer of the VT Socket VBX I've 
  3. had to spend a lot of time looking at the interactions between Trumpet 
  4. and its callers.  Trumpet gets blocked when a number of short sends are 
  5. issued in rapid succession.  This happens most frequently during telnet 
  6. or similar sessions, where a send is issued for each key stroke.
  7.  
  8. When using Trumpet in blocking mode (the default), it just looks like it 
  9. went to sleep for awhile.  When using with WSAAsyncSelect however, this 
  10. causes WSAEWOULDBLOCK and WSAEINPROGRESS errors.  To avoid these errors, 
  11. I've added "while(WSAIsBlocking()) YieldToOthers();" to my code.  This 
  12. mostly works, but sometimes Trumpet never breaks out of this loop.  How 
  13. do I know?  Because a Trumpet trace of the socket calls shows the call 
  14. being repeated over and over--forever.
  15.  
  16. My suspicion at this point is that Trumpet depends on Windows message 
  17. handling to drive its internal code.  If there are no messages or 
  18. interrupts, it appears that it just sits around waiting for something 
  19. external to happen.  I ran into this same sort of thing happening when I 
  20. did a port of NCSA's tcp to run under windows (this was a couple of years 
  21. ago, and not very successful).  Another, related, possibility has to do 
  22. with the way background dispatching priorities are set up under Windows.  
  23. Keep in mind that TCPMAN is an .exe, not a .dll, and is subject to 
  24. background/foreground priorities.  Since the tcp application has the 
  25. focus, TCPMAN is always (I assume) subject to the background priority.
  26. I intend to look into this area further myself at the first opportunity.
  27. Any thoughts?
  28.  
  29. Tim Gauslin
  30. Visual Technology Products
  31.  
  32.