Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending emails directly from VFP takes extremely long ti
Message
From
30/12/2005 11:38:11
 
 
To
29/12/2005 17:36:33
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01080354
Message ID:
01082029
Views:
19
>>>Understand - some consumer ISP's are reluctant to allow a node SMTP client to send too many emails. And some - depending on how they're routed - are slow to receive. I think what is happening is that the object is being recreated and initialized for every mail.
>>
>>The problem occurs only when sending emails using pure VFP code using code from http://fox.wikis.com/wc.dll?Wiki~SendSmtpEmail#winsock
>>
>>I found that the problem is in line
>>
>>
nWait = WSAWaitForMultipleEvents(1, @hEventRead,;
>>			0, 1000, 0)
>>
>>This causes ALWAYS 1 second delay, even if data is received immediately.
>>Any idea how to fix this ?
>
>Experiment with the parameters - my guess is that 1000 means milliseconds.

I think I cannot decrase it: at least 1000 ms is required for waiting server response packet. I would be even better to use 5000 ms for loaded server.
Andrus
Previous
Reply
Map
View

Click here to load this message in the networking platform