[pso] [tema5](linux) accept(socket...

Alina Simion alina_simion2002 at yahoo.com
Sun Jun 8 00:05:38 EEST 2008


Eu ziceam ca nu trece de accept ruland strict testul pe sistemul "outside", nu apuc sa rulez pe masina inside pentru ca se termina scriptul (nu si programul test care ramane in background blocat la accept).
do_accept(sock, 0) nu se termina... (mai precis nu trece de csock = accept (sock, (struct sockaddr *) &caddr, &csize); )
Vorbesc strict de rularea testului pe masina gazda.



----- Original Message ----
From: Razvan Deaconescu <razvan.deaconescu at cs.pub.ro>
To: Proiectarea Sistemelor de Operare <pso at cursuri.cs.pub.ro>
Sent: Saturday, June 7, 2008 11:51:57 PM
Subject: Re: [pso] [tema5](linux) accept(socket...

On Sat, 2008-06-07 at 10:41 -0700, Alina Simion wrote:
> Am urmatoarea problema: cand rulez _local_checker.sh pe "outside", imi
> ramane blocat la acceptul din do_accept din:
> test ("establish control connection", (sock = do_listen (SOCK_STREAM,
> cport)) > 0 && (control_socket = do_accept (sock, 0)) > 0);
> Mai precis scriptul se termina si ramane procesul in background blocat
> la accept, l-am deblocat doar setand timeoutul in test diferit de 0,
> caz in care acceptul iese cu EINTR (normal).
> Cateodata afiseaza: [: 18: $[0+1]: bad number
> 
> Rularea am facut-o pe doua masini virtuale. 
> Primele dati cand am rulat totusi a mers, a ramas in asteptare si am
> putut rula in masina "inside" testul. Acum vad ca nu mai trece de
> accept pe "outside", fara sa rulez nimic in masina "inside". Nu merge
> nici dand revert to snapshopul unde initial a mers, nici restartand
> masina. Reteaua merge, merge ping intre cele doua masini, merge ssh.
> 
> Vreo idee de la ce poate fi?

Probabil ca nu lasi sa treaca niste pachete. Adica le dai drop, desi ar
trebui sa le dai accept.

Pentru testare poti folosi

pe sistem gazda

./test outside adresa_IP_masina_virtuala 55555       (Linux)
test.exe outside adresa_IP_masina_virtuala 55555     (Windows)

pe masina virtuala
./test inside adresa_IP_host 55555

Razvan



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
pso mailing list
pso at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080607/770e10ef/attachment.html 


More information about the pso mailing list