On Sat, Aug 24, 2013 at 12:54 AM, Jan Kiszka wrote:
> On 2013-08-21 04:15, Liu Ping Fan wrote:
>> If slirp needs to emulate tcp timeout, then the timeout value
>> for mainloop should be more precise, which is determined by
>> slirp's fasttimo or slowtimo. Achieve this by swap the logic
>> sequence
On Sat, Aug 24, 2013 at 12:49 AM, Jan Kiszka wrote:
> On 2013-08-21 10:07, liu ping fan wrote:
>> On Wed, Aug 21, 2013 at 3:36 PM, Alex Bligh wrote:
>>>
>>>
>>> --On 21 August 2013 10:15:52 +0800 Liu Ping Fan wrote:
>>>
-void slirp_update_timeout(uint32_t *timeout)
+static void slirp_u
On 2013-08-21 04:15, Liu Ping Fan wrote:
> If slirp needs to emulate tcp timeout, then the timeout value
> for mainloop should be more precise, which is determined by
> slirp's fasttimo or slowtimo. Achieve this by swap the logic
> sequence of slirp_pollfds_fill and slirp_update_timeout.
>
> Signe
On 2013-08-21 10:07, liu ping fan wrote:
> On Wed, Aug 21, 2013 at 3:36 PM, Alex Bligh wrote:
>>
>>
>> --On 21 August 2013 10:15:52 +0800 Liu Ping Fan wrote:
>>
>>> -void slirp_update_timeout(uint32_t *timeout)
>>> +static void slirp_update_timeout(uint32_t *timeout)
>>> {
>>> -if (!QTAILQ_E
On Wed, Aug 21, 2013 at 3:36 PM, Alex Bligh wrote:
>
>
> --On 21 August 2013 10:15:52 +0800 Liu Ping Fan wrote:
>
>> -void slirp_update_timeout(uint32_t *timeout)
>> +static void slirp_update_timeout(uint32_t *timeout)
>> {
>> -if (!QTAILQ_EMPTY(&slirp_instances)) {
>> -*timeout = MI
--On 21 August 2013 10:15:52 +0800 Liu Ping Fan wrote:
-void slirp_update_timeout(uint32_t *timeout)
+static void slirp_update_timeout(uint32_t *timeout)
{
-if (!QTAILQ_EMPTY(&slirp_instances)) {
-*timeout = MIN(1000, *timeout);
If you are putting things in macros, you might as
If slirp needs to emulate tcp timeout, then the timeout value
for mainloop should be more precise, which is determined by
slirp's fasttimo or slowtimo. Achieve this by swap the logic
sequence of slirp_pollfds_fill and slirp_update_timeout.
Signed-off-by: Liu Ping Fan
---
main-loop.c | 3 +-