Re: [racket-users] set a timeout to tcp-connect

2015-07-17 Thread George Neuner
On 7/17/2015 10:16 AM, Matthias Felleisen wrote: On Jul 17, 2015, at 9:31 AM, mazert wrote: > #lang racket > > (define (foo) > (let* ([a (thread (λ () > (let-values ([(p-in p-out) (tcp-connect "google.com" 80)]) > (kill-thread b] > [b (thread (λ () > (sleep 2) > (printf "I'll kill you !")

Re: [racket-users] set a timeout to tcp-connect

2015-07-17 Thread Matthias Felleisen
On Jul 17, 2015, at 9:31 AM, mazert wrote: > #lang racket > > (define (foo) > (let* ([a (thread (λ () > (let-values ([(p-in p-out) (tcp-connect "google.com" > 80)]) >(kill-thread b] > [b (thread (λ () > (sleep 2) >

[racket-users] set a timeout to tcp-connect

2015-07-17 Thread mazert
Hello, When i try to connect on smtp.google.com on port 587 (submission) through tcp-connect, it works perfectly ; but if instead of 587 i put 666 (for example) it stucks cause the server dont answer. So after reading fews hours the doc, I didn't found a native solution to implement this, so